/* Sacrament Apiary
   To change colors, edit the values under :root.
   To change words, edit the HTML files. You can leave this file alone. */

:root {
  --cream: #f6f1e6;
  --cream-deep: #ebe4d4;
  --paper: #fbf7ef;
  --ink: #1a1812;
  --ink-soft: #3c382e;
  --line: #e0d5c2;
  --pine: #14140c;
  --pine-deep: #0d0d08;
  --gold: #c6a25a;
  --gold-bright: #d4b56e;
  --gold-deep: #6b5018;
  --honey: var(--gold);
  --honey-deep: var(--gold-deep);
  --honey-deep-hover: #543f12;
  --danger: #7a1a10;
  --focus: #6b5018;
  --serif: "Fraunces", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  --wrap: 1120px;
}

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

html {
  color-scheme: light;
  scroll-padding-top: 5.5rem;
}

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

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

a {
  color: var(--honey-deep);
  text-underline-offset: 0.16em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

.site-header :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--honey);
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 560;
  line-height: 1.15;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  margin: 0 0 0.6rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1.35rem;
  margin: 0 0 0.4rem;
}

p {
  margin: 0 0 1rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  background: var(--paper);
  color: var(--ink);
  padding: 0.6rem 0.9rem;
  z-index: 80;
  font-weight: 700;
}

.skip-link:focus {
  top: 0.75rem;
}

.phase-banner {
  margin: 0;
  background: #ead7b0;
  color: var(--ink);
  text-align: center;
  font-weight: 700;
  padding: 0.55rem 1rem;
  font-size: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--pine);
  color: #f3ead2;
}

.honey-bar {
  height: 4px;
  background: var(--gold);
}

.header-inner {
  width: min(var(--wrap), calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
  padding: 0.7rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #f3ead2;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark,
.footer-logo {
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  background: var(--pine);
}

.brand-mark {
  width: 56px;
  height: 56px;
}

.footer-logo {
  width: 88px;
  height: 88px;
  margin: 0 0 0.75rem;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1;
  display: block;
}

.brand-legal {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: #f3e6cf;
}

.nav-toggle {
  display: none;
  background: transparent;
  color: #f7f3ea;
  border: 2px solid #f3e6cf;
  border-radius: 4px;
  min-height: 44px;
  padding: 0.35rem 0.85rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: flex-end;
}

.site-nav a {
  color: #f7f3ea;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  text-decoration: underline;
  text-decoration-color: var(--honey);
  text-decoration-thickness: 2px;
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--honey);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.35rem;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2rem));
  margin-inline: auto;
}

.narrow {
  max-width: 68ch;
}

.section {
  padding: 2.75rem 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.lede {
  font-size: 1.25rem;
  max-width: 40rem;
  color: var(--ink);
}

.eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--honey-deep);
}

.hero {
  padding: 2.5rem 0 2rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.hero-grid > * {
  min-width: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.15rem;
  border-radius: 4px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
}

.button-primary,
.button-primary:visited {
  background: var(--gold);
  color: var(--pine);
  border-color: var(--gold);
}

.button-primary:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  color: var(--pine);
  text-decoration: none;
}

.button-secondary,
.button-secondary:visited {
  background: transparent;
  color: var(--pine);
  border-color: var(--pine);
}

.button-secondary:hover {
  background: var(--pine);
  color: #f7f3ea;
  text-decoration: none;
}

button:disabled {
  opacity: 0.75;
  cursor: wait;
}

.hero-label {
  background: #f3e6cf;
  border: 1px solid var(--ink);
  padding: 0.55rem;
  width: min(100%, 24rem);
  margin-inline: auto;
}

.hero-label-inner {
  border: 2px solid var(--ink);
  background: var(--paper);
  padding: 1.4rem 1.2rem 1.2rem;
  text-align: center;
}

.hero-label .brand-mark {
  margin: 0 auto 0.8rem;
}

.label-kicker {
  margin: 0 0 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
}

.label-title {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  line-height: 1.15;
  margin: 0;
}

.label-rule {
  width: 38%;
  height: 1px;
  background: var(--ink);
  border: 0;
  margin: 1rem auto;
}

.label-meta {
  margin: 0.2rem 0;
}

.roadmap,
.path-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.roadmap li,
.path {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.2rem 1.25rem 1.1rem;
}

.roadmap li {
  border-top: 4px solid var(--honey-deep);
}

.queen-cards {
  display: grid;
  gap: 1.25rem;
  margin: 1.5rem 0 0;
}

.queen-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  padding: 1.2rem 1.25rem 1.25rem;
}

.queen-card h3 {
  margin: 0 0 0.35rem;
}

.queen-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.queen-result {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  line-height: 1.1;
  margin: 0.4rem 0 0.35rem;
}

.trait-list {
  list-style: none;
  margin: 0.85rem 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.trait-list li {
  display: grid;
  grid-template-columns: 1.35rem 1fr;
  gap: 0.65rem;
  align-items: start;
}

.check {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.2rem;
  border-radius: 50%;
  background: var(--gold-deep);
  display: grid;
  place-items: center;
}

.check::after {
  content: "";
  width: 0.32rem;
  height: 0.55rem;
  border: solid #fbf7ef;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.trait-list .is-pending .check {
  background: transparent;
  border: 2px solid var(--gold-deep);
  box-sizing: border-box;
}

.trait-list .is-pending .check::after {
  content: none;
}

.coming-slot {
  border: 2px dashed var(--gold-deep);
  background: #fff8ec;
  margin-top: 1rem;
}

.coming-slot p:last-child {
  margin: 0;
  padding: 0.75rem 0.9rem 0.9rem;
}

.eval-note {
  margin: 1.25rem 0 0;
  max-width: 65ch;
}

.emoji-list {
  list-style: none;
  margin: 0.75rem 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.test-strip {
  list-style: none;
  margin: 0.35rem 0 1.25rem;
  padding: 0 0 0.35rem;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78%, 16rem);
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0.15rem;
}

.test-strip li {
  scroll-snap-align: start;
}

.test-strip figure {
  margin: 0;
}

.test-strip img {
  width: 100%;
  height: auto;
}

.step-label {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.test-strip figcaption {
  margin: 0.4rem 0 0;
  font-size: 1rem;
}

.when {
  font-family: var(--serif);
  font-size: 1.85rem;
  margin: 0 0 0.2rem;
  color: var(--honey-deep);
}

.path h3 {
  font-size: 1.45rem;
}

.path a {
  font-weight: 700;
}

.page-intro {
  padding: 2.4rem 0 0.5rem;
}

.prose a {
  font-weight: 700;
}

.facts {
  margin: 0 0 1.5rem;
  display: grid;
  gap: 0;
}

.facts > div {
  display: grid;
  gap: 0.15rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  font-weight: 700;
}

.facts dd {
  margin: 0;
}

.steps {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.steps li {
  margin: 0.4rem 0;
}

.steps li::marker {
  color: var(--honey-deep);
  font-weight: 700;
}

.photo-slot,
.placeholder-copy {
  border-color: var(--gold-deep);
}

.hero-photo {
  margin: 0;
}

.photo {
  margin: 1.5rem 0 0;
}

.photo-pair .photo {
  margin: 0;
}

.photo picture,
.hero-photo picture {
  display: block;
}

.photo img,
.hero-photo img {
  width: 100%;
  height: auto;
}

.photo figcaption,
.hero-photo figcaption {
  margin: 0.45rem 0 0;
  font-size: 1rem;
}

.photo-pair {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.bio-layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.bio-layout .portrait {
  margin: 0;
}

.bio-layout .portrait img {
  width: 100%;
  height: auto;
}

.status-line {
  margin: 1.15rem 0 0;
  font-weight: 700;
}

.placeholder-label {
  margin: 0;
  background: var(--gold-deep);
  color: #fbf7ef;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 0.8rem;
}

.photo-slot img {
  width: 100%;
  background: #f6f0e4;
}

.photo-slot figcaption {
  padding: 0.75rem 0.9rem 0.9rem;
  color: var(--ink);
  font-size: 1rem;
}

.placeholder-copy {
  border: 2px dashed var(--gold-deep);
  background: #fff8ec;
  margin: 1.5rem 0;
}

.placeholder-copy .placeholder-body {
  padding: 0.2rem 1rem 0.4rem;
}

.placeholder-copy p:last-child {
  margin-bottom: 0.8rem;
}

.bracket {
  font-family: var(--serif);
  background: #fff;
  border-left: 4px solid #e2b15a;
  padding: 0.75rem 0.9rem;
}

.site-footer {
  background: var(--pine);
  color: #f7f3ea;
  padding: 2.5rem 0 1.5rem;
  margin-top: 1rem;
}

.site-footer a {
  color: #f7f3ea;
  font-weight: 700;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.footer-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin: 0 0 0.4rem;
}

.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  display: inline-block;
  padding: 0.2rem 0;
}

.fine-print {
  margin: 1.5rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(247, 243, 234, 0.25);
  font-size: 1rem;
}

code {
  font-family: ui-monospace, "Courier New", monospace;
  font-size: 0.92em;
  overflow-wrap: anywhere;
}

.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.2rem;
  max-width: 40rem;
}

.form-card h2,
.form-result h2 {
  font-size: 1.6rem;
}

.setup-note {
  background: #fff8ec;
  border: 2px dashed var(--gold-deep);
  padding: 0.8rem 0.9rem;
  margin: 0 0 1rem;
}

.form-grid,
.choices {
  display: grid;
  gap: 0.85rem;
}

.field label,
.interest-fieldset legend {
  font-weight: 700;
  display: block;
  margin-bottom: 0.35rem;
  padding: 0;
}

.req {
  font-weight: 600;
  color: var(--ink-soft);
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 2px solid #cbbba8;
  border-radius: 4px;
  padding: 0.7rem 0.75rem;
}

textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.interest-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.choice {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0.55rem 0.75rem;
  border: 2px solid #cbbba8;
  border-radius: 4px;
  background: #fff;
  font-weight: 600;
}

.choice input {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--honey-deep);
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-errors,
.form-result {
  border: 2px solid var(--honey-deep);
  background: #fff;
  padding: 0.9rem 1rem;
  margin: 0 0 1rem;
}

.form-errors {
  border-color: var(--danger);
}

.form-errors:focus,
.form-result:focus {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.form-errors ul {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
}

.field-error {
  color: var(--danger);
  font-weight: 700;
  margin: 0.35rem 0 0;
}

.message-copy {
  white-space: pre-wrap;
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 0.8rem;
  font-family: ui-monospace, "Courier New", monospace;
  font-size: 0.95rem;
}

.contact-email {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

address {
  font-style: normal;
}

.closing {
  background: var(--cream-deep);
  border-top: 1px solid var(--line);
}

.closing .wrap {
  padding: 2.5rem 0;
}

@media (min-width: 700px) {
  .facts > div {
    grid-template-columns: 14rem 1fr;
    gap: 1.25rem;
    align-items: baseline;
  }

  .choices {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 800px) {
  .brand-mark {
    width: 64px;
    height: 64px;
  }

  .photo-pair {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .bio-layout {
    grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr);
    gap: 2.5rem;
  }

  .test-strip {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(2, 1fr);
    overflow: visible;
  }

  .section {
    padding: 4rem 0;
  }

  .roadmap {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1.1fr auto;
    align-items: start;
  }
}

@media (min-width: 960px) {
  .path-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1100px) {
  .test-strip {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (min-width: 980px) {
  .hero {
    padding: 3.5rem 0 2.5rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 1.05fr);
    gap: 2.5rem;
    align-items: center;
  }
}

@media (max-width: 1180px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .site-nav {
    flex: 1 0 100%;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .site-nav a {
    display: inline-block;
    padding: 0.55rem 0;
  }

  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .js .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--pine-deep);
    padding: 0.35rem 1.25rem 0.9rem;
    border-top: 1px solid rgba(247, 243, 234, 0.18);
  }

  .js .site-nav.is-open {
    display: block;
  }
}

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

@media print {
  .phase-banner,
  .nav-toggle,
  .site-nav,
  .honey-bar,
  .actions,
  .setup-note {
    display: none !important;
  }

  .site-header,
  .site-footer {
    position: static;
    background: white;
    color: black;
  }

  .site-header a,
  .site-footer a,
  .brand,
  .brand-legal {
    color: black;
  }

  body {
    background: white;
  }
}
