/* allannahjackson.com — interim link-in-bio site.
   Mobile-first; the desktop pass comes once the mobile look is approved.
   Palette and type per ../../Brand-Identity.md (confirmed 2026-08-13).
   Mood carried over from Design-References/Refero-Blend.md: warm canvas,
   hairline ink borders, no shadows, orange rationed to one tile. */

:root {
  --base: #FFFCFA;
  --paper: #FFFFFF;
  --ink: #5B5121;
  --orange: #F06329;
  --blush: #ECBEBE;
  --yellow: #FCD685;
  --olive: #BFA734;
  --bluegrey: #E0E5EC;

  --hairline: 1px solid var(--ink);

  --font-headline: Georgia, "Playfair Display", serif;
  --font-body: "Montserrat", "Nunito", sans-serif;
}

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

body {
  background: var(--base);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  letter-spacing: 0.012em;
  -webkit-font-smoothing: antialiased;
}

h2 {
  font-family: var(--font-headline);
  font-weight: 700;
  line-height: 1.15;
}

a { color: var(--orange); }

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

::selection { background: var(--yellow); }

img { max-width: 100%; }

/* The single column */
.stack {
  max-width: 26rem;
  margin: 0 auto;
  padding: 2.75rem 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Portrait, wordmark, one-liner */
.me {
  text-align: center;
  margin-bottom: 1.25rem;
}
.portrait {
  position: relative;
  width: 128px;
  height: 128px;
  margin: 0 auto 1.4rem;
}
.portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--olive);
  transform: translate(11px, 11px);
}
.portrait span,
.portrait img {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bluegrey);
  object-fit: cover;
}
.portrait span {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(91, 81, 33, 0.55);
  text-align: center;
}
.wordmark {
  width: 190px;
  height: auto;
  margin-bottom: 1.1rem;
}
.tagline {
  font-size: 1rem;
  max-width: 21rem;
  margin: 0 auto;
}
.tagline em {
  font-family: var(--font-headline);
  font-style: italic;
}

/* Tiles — flat plates with hairline borders, no shadows */
.tile {
  background: var(--paper);
  border: var(--hairline);
  padding: 1.6rem 1.4rem;
}

/* The one orange moment: the letter tile */
.tile--letter {
  background: var(--orange);
  border: none;
  color: var(--base);
  text-align: center;
}
.tile--letter h2 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}
.tile--letter a { color: var(--base); }

/* Collapsibles */
details.tile { padding: 0; }
details.tile summary {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.3;
  padding: 1.1rem 1.4rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
details.tile summary::-webkit-details-marker { display: none; }
details.tile summary::after {
  content: "+";
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--orange);
  transition: transform 0.3s ease;
}
details.tile[open] summary::after {
  transform: rotate(45deg);
}
.tile-body {
  padding: 0.2rem 1.4rem 1.6rem;
}
.about-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}
.tile-body p + p { margin-top: 0.9rem; }
.tile-body .capture { margin-top: 1.1rem; }

/* Link rows — the linktree bit */
.links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.linkrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--paper);
  border: var(--hairline);
  padding: 1.05rem 1.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.linkrow:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-2px);
}
.linkrow span { color: var(--orange); }

/* Buttons: solid, squared corners, caps labels */
.btn {
  display: block;
  width: 100%;
  background: var(--orange);
  color: var(--base);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-decoration: none;
  border: none;
  border-radius: 0;
  padding: 0.9rem 1.4rem;
  cursor: pointer;
  transition: background 0.3s ease;
}
.btn:hover { background: #d9541f; }
.btn--onorange {
  background: var(--base);
  color: var(--orange);
}
.btn--onorange:hover { background: var(--paper); }

/* Capture forms — stacked, full width */
.capture form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
/* Kit wraps its inputs in a data-element="fields" div; give it the
   same stacked layout as a plain form so Kit-embedded and plain
   placeholder forms look identical */
.capture [data-element="fields"] {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.capture input[type="email"],
.capture input[type="text"] {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--base);
  border: var(--hairline);
  border-radius: 0;
  padding: 0.85rem 1rem;
  width: 100%;
}
.capture input[type="email"]::placeholder,
.capture input[type="text"]::placeholder { color: var(--ink); opacity: 0.5; }
.tile--letter .capture input[type="email"],
.tile--letter .capture input[type="text"] { border-color: var(--base); }
.capture .smallprint {
  font-size: 0.75rem;
  opacity: 0.8;
  margin-top: 0.8rem;
}

/* Kit's own JS writes into this list on validation/server errors */
.formkit-alert {
  list-style: none;
  font-size: 0.8125rem;
  color: var(--orange);
}
.tile--letter .formkit-alert { color: var(--base); }
.formkit-alert:empty { display: none; }

/* Footer */
.foot {
  text-align: center;
  font-size: 0.75rem;
  margin-top: 1.5rem;
}
.foot .avatar {
  width: 40px;
  margin: 0 auto 0.6rem;
  display: block;
}

/* Desktop: same single column, just more air. The linktree shape is
   the design; wider screens get scale, not extra columns. */
@media (min-width: 48rem) {
  body { font-size: 1.0625rem; }
  .stack {
    max-width: 28rem;
    padding-top: 4.5rem;
    padding-bottom: 3.5rem;
    gap: 1.15rem;
  }
  .me { margin-bottom: 1.75rem; }
  .portrait {
    width: 152px;
    height: 152px;
    margin-bottom: 1.6rem;
  }
  .portrait::before { transform: translate(13px, 13px); }
  .wordmark { width: 210px; }
  .tagline { max-width: 23rem; }
  .tile { padding: 1.9rem 1.75rem; }
  .tile--letter {
    padding: 3rem 2.25rem;
  }
  .tile--letter h2 {
    font-size: 1.8rem;
    margin-bottom: 0.85rem;
  }
  .tile--letter .capture { margin-top: 2rem; }
  .tile--letter .capture form,
  .tile--letter .capture [data-element="fields"] { gap: 0.9rem; }
  .tile--letter .capture .smallprint { margin-top: 1.15rem; }
  details.tile { padding: 0; }
  details.tile summary { padding: 1.25rem 1.75rem; }
  .tile-body { padding: 0.2rem 1.75rem 1.9rem; }
  .linkrow { padding: 1.15rem 1.75rem; }
  .capture form,
  .capture [data-element="fields"] {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .capture input[type="email"],
  .capture input[type="text"] {
    flex: 1 1 10rem;
    width: auto;
  }
  .capture .btn { width: auto; flex: 0 0 auto; }
  .tile--letter .capture form,
  .tile--letter .capture [data-element="fields"] { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .linkrow, .btn, details.tile summary::after { transition: none; }
}
