/* Sarge Callahan: plain link page.
   Palette taken from his photo: canvas paper, pine green, cabin-log brown. Flat colors only. */
:root {
  /* Palette tokens */
  --paper: #F2ECDF;       /* page background, canvas */
  --paper-card: #FAF7F0;  /* panels, gear buttons */
  --ink: #1E1C17;         /* main text */
  --ink-soft: #4F4A40;    /* secondary text (7:1 on paper) */
  --ink-small: #3A352C;   /* small print (10.3:1 on paper, 11.4:1 on card) */
  --pine: #2E4A2F;        /* primary buttons, top band */
  --pine-dark: #213622;   /* primary hover, button base edge */
  --timber: #6A4428;      /* ebook button, section rules */
  --timber-dark: #4F311B; /* timber edge */
  --rule: #CBBFA8;        /* borders, dividers */
  --rust: #9A4A24;        /* focus ring, error text */
  --on-dark: #FFFFFF;

  --font-head: "Roboto Slab", Rockwell, "Courier New", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;

  --radius: 6px;
  --gap: 12px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.5;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--pine); text-underline-offset: 3px; }

:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 3px;
}

.topband { height: 8px; background: var(--pine); }

.page {
  max-width: 34rem;
  margin: 0 auto;
  padding: 32px 20px 24px;
}

/* Profile */
.profile { text-align: center; margin-bottom: 28px; }

.profile__photo {
  width: 152px;
  height: 152px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 4px solid var(--paper-card);
  outline: 2px solid var(--timber);
  object-fit: cover;
}

.profile__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.875rem;
  line-height: 1.2;
  margin: 0 0 8px;
}

.profile__bio {
  font-size: 1.1875rem;
  color: var(--ink-soft);
  margin: 0 auto;
  max-width: 26rem;
}

/* Buttons */
.links { display: grid; gap: 14px; }

.btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 64px;
  padding: 12px 18px;
  border: 2px solid transparent;
  border-bottom-width: 4px;
  border-radius: var(--radius);
  font: inherit;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 120ms ease;
}

.btn__label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1875rem;
  line-height: 1.25;
}

.btn__sub {
  font-size: 1rem;
  margin-top: 2px;
}

.btn--primary {
  background: var(--pine);
  border-color: var(--pine-dark);
  color: var(--on-dark);
}
.btn--primary:hover { background: var(--pine-dark); }

.btn--secondary {
  background: var(--timber);
  border-color: var(--timber-dark);
  color: var(--on-dark);
}
a.btn--secondary:hover { background: var(--timber-dark); }

.btn--soon {
  cursor: default;
  background: var(--paper-card);
  border-color: var(--rule);
  border-style: dashed;
  border-bottom-width: 2px;
  color: var(--ink-small);
}

/* Checklist panel */
.panel {
  background: var(--paper-card);
  border: 2px solid var(--rule);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: -4px;
}
.js .panel:not(.is-open) { display: none; }

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.field__hint { font-weight: 400; color: var(--ink-soft); }

.field input {
  width: 100%;
  min-height: 52px;
  padding: 10px 14px;
  font: inherit;
  color: var(--ink);
  background: #FFFFFF;
  border: 2px solid var(--ink-soft);
  border-radius: var(--radius);
}
.field input[aria-invalid="true"] { border-color: var(--rust); }

.field__error {
  color: var(--rust);
  font-weight: 600;
  font-size: 1rem;
  margin: 6px 0 0;
}

.btn--submit .btn__label, .btn--submit { font-family: var(--font-head); font-weight: 700; font-size: 1.1875rem; }
.btn--submit[disabled] { opacity: 0.7; cursor: wait; }

.signup__note {
  font-size: 1.0625rem;
  color: var(--ink-small);
  text-align: center;
  margin: 12px 0 0;
}

.delivered:focus { outline: none; }

.delivered__title {
  font-family: var(--font-head);
  font-size: 1.375rem;
  margin: 0 0 6px;
}

.delivered__text { margin: 0 0 14px; color: var(--ink-soft); }

.delivered__preview {
  display: block;
  margin-bottom: 14px;
  border: 2px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}

/* Gear */
.gear { margin-top: 44px; }

.section-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.625rem;
  text-align: center;
  margin: 0 0 4px;
}

.gear__intro { text-align: center; margin: 0; color: var(--ink-soft); }

.gear__disclosure {
  text-align: center;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink-small);
  margin: 8px 0;
}

.gear__group { margin-top: 24px; }

.gear__heading {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1875rem;
  color: var(--timber);
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--timber);
}

.gear__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.gear__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 12px 16px;
  background: var(--paper-card);
  border: 2px solid var(--rule);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  touch-action: manipulation;
  transition: border-color 120ms ease;
}
.gear__link:hover { border-color: var(--pine); }

.gear__text { display: flex; flex-direction: column; }

.gear__note {
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink-small);
  margin-top: 2px;
}

.gear__link svg {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--pine);
  stroke-width: 2.5;
}

/* Footer */
.footer {
  max-width: 34rem;
  margin: 40px auto 0;
  padding: 28px 20px 40px;
  border-top: 2px solid var(--rule);
  text-align: center;
}

.footer__title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  margin: 0 0 14px;
}

.social {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  min-width: 0;
  padding: 8px 6px;
  border: 2px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper-card);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 120ms ease;
}
.social__link:hover { border-color: var(--pine); }

.social__link svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--pine);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.social__link svg .fill { fill: var(--pine); stroke: none; }

.footer__privacy {
  font-size: 1.0625rem;
  color: var(--ink-small);
  text-align: left;
  margin: 0 0 16px;
}

.footer__copy { font-size: 1rem; color: var(--ink-small); margin: 0; }

@media (min-width: 720px) {
  .page { padding-top: 48px; }
  .profile__photo { width: 176px; height: 176px; }
  .profile__name { font-size: 2.125rem; }
  .social { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .social__link { gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
