body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  width: min(100% - 32px, 960px);
  margin: 0 auto;
  flex: 1;
}
.site-header {
  width: min(100% - 32px, 960px);
  margin: 0 auto;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font: 500 23px var(--font-serif);
  text-decoration: none;
}
.wordmark img {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 9px;
}
.wordmark span {
  color: var(--blue);
}
nav {
  display: flex;
  gap: 18px;
}
nav a {
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}
nav a:last-child {
  color: var(--blue);
}
.hero {
  padding: 56px 0 26px;
  max-width: 560px;
}
.hero h1,
.profile-intro h1 {
  margin: 0;
  font: 400 clamp(48px, 10vw, 76px)/0.95 var(--font-serif);
  letter-spacing: -0.04em;
}
.lede {
  max-width: 430px;
  color: var(--muted);
  font: 400 20px/1.5 var(--font-serif);
}
.prompt-card {
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  padding: clamp(24px, 6vw, 46px);
}
.prompt-card h2 {
  max-width: 640px;
  margin: 0;
  font: 400 clamp(30px, 5vw, 46px)/1.08 var(--font-serif);
  letter-spacing: -0.025em;
}
.prompt-card .eyebrow span {
  color: var(--gold);
  padding: 0 3px;
}
.prompt-note,
.fine-print {
  color: var(--muted);
  font-size: 14px;
}
.prompt-note {
  margin: 26px 0 8px;
}
.fine-print {
  margin: 14px 0 0;
  font-size: 12px;
}
.profile-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 38px 0 25px;
}
.profile-intro h1 {
  font-size: clamp(32px, 7vw, 50px);
}
.profile-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 16px;
}
.copy-link {
  flex: 0 0 auto;
}
.copy-link span {
  font-size: 13px;
}
.stats {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 8px;
  align-items: baseline;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.stats strong {
  color: var(--blue);
  font: 400 27px var(--font-serif);
  text-align: right;
}
.writing-card textarea {
  display: block;
  width: 100%;
  resize: vertical;
  margin: 28px 0 12px;
  padding: 16px;
  line-height: 1.6;
}
.actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.actions .button {
  width: auto;
  padding: 12px 18px;
}
.reflection {
  border-top: 1px solid var(--border-soft);
  margin-top: 30px;
  padding-top: 24px;
}
.reflection fieldset {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}
.reflection legend {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 13px;
}
.reflection label {
  margin: 0 12px 8px 0;
  color: var(--muted);
  font-size: 13px;
  display: inline-block;
}
.reflection input[type="text"],
.reflection input:not([type]) {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
}
.change-prompt {
  margin-top: 20px;
}
.archive {
  padding: 60px 0;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 14px;
}
.section-heading h2 {
  margin: 0;
  font: 400 31px var(--font-serif);
}
.session-list {
  border-top: 1px solid var(--border-soft);
}
.session-row {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-soft);
}
.session-row h3 {
  max-width: 430px;
  margin: 0 0 6px;
  font: 400 21px/1.15 var(--font-serif);
}
.session-row p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.session-row form {
  min-width: 180px;
}
.session-row input {
  width: 100%;
  padding: 8px;
  margin-bottom: 7px;
  font-size: 12px;
}
.empty {
  border-left: 3px solid var(--gold);
  padding: 5px 0 5px 15px;
  color: var(--muted);
  font: 400 19px/1.4 var(--font-serif);
}
.notice {
  border-left: 3px solid var(--gold);
  margin: 0 0 20px;
  padding: 10px 14px;
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
}
.notice-error {
  border-left-color: var(--clay);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
footer {
  width: min(100% - 32px, 960px);
  margin: 0 auto;
  padding: 28px 0 38px;
  border-top: 1px solid var(--border-soft);
  color: var(--faint);
  font: 11px var(--font-sans);
  letter-spacing: 0.05em;
  text-align: right;
}
@media (max-width: 600px) {
  .site-header {
    min-height: 68px;
  }
  .hero {
    padding-top: 35px;
  }
  .profile-intro {
    align-items: start;
    flex-direction: column;
  }
  .stats {
    align-self: stretch;
    justify-content: end;
  }
  .actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .session-row {
    flex-direction: column;
  }
  .session-row form {
    min-width: 0;
  }
  .section-heading {
    align-items: start;
    flex-direction: column;
  }
}

.submission-link {
  color: var(--ink);
  text-decoration: none;
}
.submission-link:hover {
  color: var(--blue);
}
.back-link {
  margin: 32px 0 16px;
}
.back-link a {
  color: var(--blue);
  font-size: 13px;
}
.submission {
  padding-bottom: 62px;
}
.submission > h1 {
  margin: 0;
  font: 400 clamp(32px, 6vw, 52px)/1.06 var(--font-serif);
  letter-spacing: -0.025em;
}
.submission-date {
  color: var(--muted);
  font-size: 13px;
}
.original-writing,
.reflection-summary,
.revision-form {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
}
.original-writing h2,
.reflection-summary h2 {
  margin: 0 0 16px;
  font: 400 27px var(--font-serif);
}
.original-writing div {
  white-space: pre-wrap;
  font: 400 19px/1.65 var(--font-serif);
}
.reflection-summary p {
  color: var(--muted);
  line-height: 1.5;
}
.tag {
  display: inline-block;
  margin: 0 6px 6px 0;
  border-radius: var(--r-pill);
  padding: 4px 10px;
  background: var(--blue);
  color: var(--surface);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.revision-form label {
  display: block;
  margin-bottom: 10px;
  font: 400 25px var(--font-serif);
}
.revision-form textarea {
  display: block;
  width: 100%;
  margin-bottom: 12px;
  padding: 14px;
  line-height: 1.55;
  resize: vertical;
}
.revision-form .button {
  width: auto;
  padding: 12px 18px;
}
