@font-face {
  font-family: 'Crimson Text';
  src: url('CrimsonText-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Crimson Text';
  src: url('CrimsonText-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
}
@font-face {
  font-family: 'Crimson Text';
  src: url('CrimsonText-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --text: #1a1a1a;
  --text-muted: #888;
  --border: #c8c4bc;
  --bg: #ffffff;
  --link: #1a1a1a;
}



html {
  font-size: 19px;
}

body {
  font-family: 'Crimson Text', Georgia, serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.85;
  padding: 3rem 1.5rem 5rem;
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
}

/* Header */
header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 0.5px solid var(--border);
}

.site-name {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text);
  text-decoration: none;
}

nav a {
  font-size: 16px;
  color: var(--text-muted);
  text-decoration: none;
  font-style: italic;
}

nav a:hover {
  color: var(--text);
}

/* Article */
article h1 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.article-date {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1.8rem;
}

p {
  margin-bottom: 1.4rem;
}

p:last-child {
  margin-bottom: 0;
}

/* Dropcap */
p.dropcap::first-letter {
  font-size: 4.5em;
  font-weight: 600;
  float: left;
  line-height: 0.82;
  margin-right: 0.07em;
  margin-top: 0.05em;
}

/* Section headings inside articles */
article h2 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 2.2rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}

/* Blockquote */
blockquote {
  margin: 2rem 0;
  padding-left: 1.5rem;
  border-left: 1.5px solid var(--border);
}

blockquote p {
  font-style: italic;
  color: var(--text);
  margin-bottom: 0.5rem;
}

blockquote cite {
  font-size: 13px;
  color: var(--text-muted);
  font-style: normal;
}

/* Links in body text */
article a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Video embed */
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  margin: 2rem 0;
}

.video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* Divider */
hr {
  border: none;
  border-top: 0.5px solid var(--border);
  margin: 3rem 0;
}

/* Section intro text */
.section-intro {
  font-size: 16px;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* Newsletter */
.newsletter {
  margin-bottom: 0;
}

.newsletter-row {
  display: flex;
  gap: 8px;
}

.newsletter-row input {
  flex: 1;
}

.btn-filled {
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 16px;
  background: var(--text);
  border: 0.5px solid var(--text);
  padding: 7px 22px;
  cursor: pointer;
  color: var(--bg);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.btn-filled:hover {
  opacity: 0.85;
}

/* Footer */
footer {
  border-top: 0.5px solid var(--border);
  margin-top: 3rem;
  padding: 1.5rem 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* Contact form */
.contact-intro {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.field {
  margin-bottom: 1.4rem;
}

label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-style: italic;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  border: none;
  border-bottom: 0.5px solid var(--border);
  padding: 6px 0;
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 18px;
  color: var(--text);
  background: transparent;
  outline: none;
  border-radius: 0;
  -webkit-text-fill-color: var(--text);
}

input[type="text"]:focus,
input[type="email"]:focus {
  border-bottom-color: var(--text);
}

textarea {
  width: 100%;
  border: 0.5px solid var(--border);
  padding: 10px;
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 18px;
  color: var(--text);
  background: transparent;
  outline: none;
  resize: vertical;
  min-height: 140px;
  border-radius: 0;
  -webkit-text-fill-color: var(--text);
}

textarea:focus {
  border-color: var(--text);
}

button {
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 16px;
  background: transparent;
  border: 0.5px solid var(--border);
  padding: 7px 22px;
  cursor: pointer;
  color: var(--text);
  letter-spacing: 0.03em;
}

button:hover {
  border-color: var(--text);
}

/* Status messages */
.status {
  margin-top: 1rem;
  font-size: 15px;
  font-style: italic;
  color: var(--text-muted);
  display: none;
}

/* Encrypted output */
.encrypted-output {
  display: none;
  margin-top: 1.5rem;
}

.encrypted-output p {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 8px;
}

.encrypted-output textarea {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  min-height: 120px;
}

.btn-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

/* Key status */
.key-status {
  font-size: 13px;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.key-status.loaded {
  color: var(--text);
}
