@font-face {
  font-family: Cormorant;
  src: url("/fonts/serif.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 600;
}
@font-face {
  font-family: Cormorant;
  src: url("/fonts/serif-italic.woff2") format("woff2");
  font-display: swap;
  font-style: italic;
  font-weight: 600;
}
@font-face {
  font-family: DM Sans;
  src: url("/fonts/sans.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}
@font-face {
  font-family: DM Sans;
  src: url("/fonts/sans-bold.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}
:root {
  color-scheme: light;
  --paper: #faf6ec;
  --ivory: #f5eee0;
  --parchment: #eee4d1;
  --pine: #17352a;
  --green: #315541;
  --ink: #24362b;
  --muted: #526052;
  --gold: #8e6630;
  --border: #dacfba;
  --serif: Cormorant, Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --heart: #9c5366;
  --head: #577f7b;
  --life: #aa553d;
  --fate: #a36b20;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.62;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
a {
  color: inherit;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #a67231;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.wrap {
  width: min(1170px, calc(100% - 96px));
  margin-inline: auto;
}
.sr-only,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.skip:focus {
  position: fixed;
  z-index: 5;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  background: var(--paper);
}
.site-header {
  border-bottom: 1px solid var(--border);
  background: #faf6ec;
}
.masthead {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  white-space: nowrap;
  font-family: var(--serif);
  font-size: 1.78rem;
  line-height: 1.05;
  text-decoration: none;
  color: var(--pine);
}
.brand i {
  font-weight: inherit;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 1px solid #a28456;
  border-radius: 50%;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 1.22rem;
  flex: none;
}
nav {
  display: flex;
  align-items: center;
  gap: clamp(1.15rem, 3vw, 2.65rem);
}
nav a {
  font-size: 0.9rem;
  text-decoration: none;
  color: #344738;
  white-space: nowrap;
}
nav a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 49px;
  padding: 0.65rem 1.18rem;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 0.91rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  text-align: center;
  transition:
    background-color 0.16s,
    border-color 0.16s,
    color 0.16s;
}
.button.primary {
  color: #fff9ec;
  background: var(--pine);
  border-color: var(--pine);
}
.button.primary:hover:not(:disabled) {
  background: #2d503f;
  border-color: #2d503f;
}
.button.outline {
  color: var(--pine);
  background: transparent;
  border-color: #77907b;
}
.button.outline:hover:not(:disabled) {
  background: #e8e9d9;
}
.button:disabled {
  opacity: 0.48;
}
.nav-action {
  min-height: 40px;
  padding-inline: 1rem;
  font-size: 0.83rem;
}
.text-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--pine);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: #ad8e65;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  line-height: 1.5;
}
.text-button:hover {
  text-decoration-color: var(--pine);
}
.hero {
  padding: 47px 0 53px;
  background:
    radial-gradient(ellipse at 22% 5%, #fbf6eb, transparent 67%),
    linear-gradient(107deg, #f2e8d5, #f7f0e2 76%);
}
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(42px, 6.1vw, 90px);
}
.hero-copy {
  padding: 8px 0 15px;
}
.eyebrow {
  margin: 0 0 13px;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}
.small-star {
  display: inline-block;
  margin-right: 0.34rem;
  color: var(--gold);
  font-size: 0.95rem;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--pine);
}
h1 {
  margin-bottom: 22px;
  font-size: clamp(4.05rem, 6.85vw, 6.45rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
}
h1 em {
  font-weight: inherit;
  color: #56684b;
}
.lede {
  max-width: 445px;
  margin-bottom: 26px;
  font-size: clamp(1rem, 1.42vw, 1.12rem);
  color: #425144;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.hero-actions .primary {
  padding-inline: 1.45rem;
}
.hero-figure {
  margin: 0;
  position: relative;
  isolation: isolate;
  aspect-ratio: 1.16;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 6px;
  background: #112b20;
}
.hero-figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scaleX(-1);
  z-index: -1;
}
.hero-figure::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 13px;
  border: 1px solid #c6a97465;
  border-radius: 2px;
  pointer-events: none;
}
.values {
  background: #ebeadc;
  border-block: 1px solid #dce0cd;
  color: #39533f;
}
.values ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0;
  list-style: none;
  min-height: 56px;
  align-items: center;
  margin-block: 0;
}
.values li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.58rem;
  min-height: 26px;
  padding: 0.2rem 0.6rem;
  text-align: center;
  font-size: 0.83rem;
  font-weight: 700;
  line-height: 1.25;
}
.values li + li {
  border-left: 1px solid #d2d5c0;
}
.values li span {
  color: var(--gold);
  font-size: 1.05rem;
  line-height: 1;
}
.section {
  padding-block: clamp(52px, 6vw, 84px);
}
.section-heading {
  text-align: center;
  margin-bottom: 30px;
}
h2 {
  font-size: clamp(2.85rem, 4.7vw, 4.25rem);
  line-height: 0.98;
  letter-spacing: -0.037em;
  margin-bottom: 13px;
}
.section-heading p:last-child,
.gift-copy > p:not(.eyebrow) {
  color: var(--muted);
  max-width: 42ch;
  margin-inline: auto;
  margin-bottom: 0;
}
#reading > .section-heading p:last-child {
  max-width: none;
}
.reading-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 22px;
  max-width: 980px;
  margin-inline: auto;
}
.panel {
  border: 1px solid var(--border);
  border-radius: 6px;
}
.upload-panel {
  padding: clamp(14px, 2.3vw, 25px);
  background: #fffaf1;
}
.drop-area {
  min-height: 222px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 9px;
  padding: 22px 12px 18px;
  border: 1px dashed #bdaa8a;
  border-radius: 4px;
  background: #f8f2e5;
  text-align: center;
}
.drop-area.is-over {
  background: #e8ebdc;
  border-color: var(--green);
}
.drop-area h3 {
  font-size: 1.78rem;
  line-height: 1.05;
  margin: 3px 0 5px;
}
.drop-area p {
  margin: 0;
  font-size: 0.89rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.drop-area .file-hint {
  font-size: 0.77rem;
}
.drop-area .button {
  min-height: 41px;
  font-size: 0.83rem;
}
.upload-mark {
  margin: 0 auto 0.4rem;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #d4c2a1;
  border-radius: 50%;
  color: var(--gold);
}
.upload-mark span {
  position: relative;
  width: 16px;
  height: 13px;
  border: 1px solid currentColor;
  border-radius: 2px;
}
.upload-mark span::before {
  content: "";
  position: absolute;
  width: 3px;
  height: 3px;
  right: 2px;
  top: 2px;
  border-radius: 50%;
  background: currentColor;
}
.upload-mark span::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  left: 2px;
  bottom: 0;
  border-left: 1px solid currentColor;
  border-top: 1px solid currentColor;
  transform: rotate(45deg) translate(1px, 2px);
}
#photo-preview {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 310px;
  border-radius: 3px;
}
.photo-control {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 16px;
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #4b594c;
  font-size: 0.83rem;
  line-height: 1.42;
  margin-right: auto;
}
.consent input {
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  flex: none;
  accent-color: var(--pine);
}
.photo-control .button {
  flex: none;
}
.tips {
  padding: clamp(21px, 3vw, 35px);
  background: #eee8d9;
}
.tips h3 {
  font-size: clamp(2rem, 3vw, 2.65rem);
  line-height: 0.94;
  margin: 0.3rem 0 1.2rem;
  letter-spacing: -0.025em;
}
.tips ul {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}
.tips li {
  position: relative;
  margin-bottom: 9px;
  padding-left: 16px;
  font-size: 0.86rem;
  line-height: 1.5;
}
.tips li::before {
  position: absolute;
  content: "✧";
  font-size: 0.86rem;
  left: 0;
  top: 0;
  color: var(--gold);
}
.tips li span {
  display: block;
  color: #4d5a4c;
}
.tips > p {
  border-top: 1px solid #d8ccb5;
  padding-top: 10px;
  margin: 13px 0 0;
  color: #4a584c;
  font-size: 0.8rem;
}
.status {
  padding: 0.65rem 0.8rem;
  margin: 0.9rem 0 0;
  border-left: 2px solid #778c6d;
  background: #eef0e5;
  color: #2f503b;
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}
.status.error {
  background: #f7e8dd;
  color: #803c29;
  border-color: #ab6047;
}
.quality-list {
  list-style: none;
  margin: 0.7rem 0 0;
  padding: 0;
  font-size: 0.85rem;
  color: #3e5343;
}
.quality-list li {
  display: flex;
  gap: 0.5rem;
}
.read-action {
  margin-top: 0.8rem;
}
.results {
  max-width: 980px;
  margin: 55px auto 0;
  text-align: center;
}
.result-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  text-align: left;
}
.line-card {
  background: #fffaf2;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 5px;
  border-top: 3px solid var(--tone, var(--gold));
}
.line-card h3,
.guide-detail h3 {
  font-size: 2rem;
  line-height: 1.05;
  margin: 0 0 0.35rem;
}
.line-card p {
  font-size: 0.92rem;
  margin: 0 0 0.37rem;
  color: #485749;
}
.line-card p:last-child {
  margin-bottom: 0;
}
.line-card .line-label {
  font-size: 0.72rem;
  letter-spacing: 0.095em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--tone, var(--gold));
}
.rust {
  --tone: var(--life);
}
.teal {
  --tone: var(--head);
}
.rose {
  --tone: var(--heart);
}
.ochre {
  --tone: var(--fate);
}
.fineprint {
  font-size: 0.79rem;
  line-height: 1.5;
  color: #5a6458;
}
.results .fineprint {
  max-width: 67ch;
  margin: 18px auto 15px;
}
.guide {
  background: #e9edde;
  border-block: 1px solid #d5ddca;
}
.guide-layout {
  display: grid;
  grid-template-columns: 0.83fr 1.17fr;
  align-items: center;
  gap: 48px;
  max-width: 980px;
}
.guide .section-heading {
  text-align: left;
  margin: 0;
}
.guide .section-heading p:last-child {
  margin-left: 0;
}
.guide .section-heading p:not(.eyebrow) {
  max-width: 43ch;
  color: var(--muted);
  margin-bottom: 0.65rem;
}
.source-link {
  font-size: 0.85rem;
}
.line-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 10px;
}
.line-picker button {
  padding: 0.37rem 0.57rem;
  border: 1px solid #a6b19b;
  border-radius: 3px;
  background: transparent;
  color: #3b5341;
  font-size: 0.79rem;
  font-weight: 700;
}
.line-picker button[aria-pressed="true"] {
  color: #fffaec;
  background: var(--pine);
  border-color: var(--pine);
}
.guide-detail {
  min-height: 186px;
  padding: 22px 24px;
  border: 1px solid #d3d9c5;
  border-left: 3px solid var(--tone, var(--gold));
  border-radius: 4px;
  background: #f8f6eb;
}
.guide-detail p {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.guide-detail p:last-child {
  margin: 0;
}
.certificate {
  max-width: 980px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 6.2vw, 78px);
}
.gift-art {
  min-height: 468px;
  display: grid;
  place-items: center;
  padding: 33px;
  background: #dfd9c6;
  border-radius: 5px;
  background: radial-gradient(ellipse at 50% 18%, #e9e0cb, #d5cdb8);
}
.certificate-preview {
  width: min(100%, 286px);
  min-height: 362px;
  overflow-wrap: anywhere;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 29px 20px;
  position: relative;
  isolation: isolate;
  background: #fbf2dd;
  border: 1px solid #a5804c;
  color: var(--pine);
  box-shadow: 3px 13px 21px #56452645;
  transform: rotate(-3deg);
}
.certificate-preview::before,
.certificate-preview::after {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: -1;
  border: 1px solid #a5804c;
  pointer-events: none;
}
.certificate-preview::after {
  inset: 12px;
  border-color: #cfb889;
}
.certificate-preview p {
  margin: 0;
}
.certificate-preview .eyebrow {
  font-size: 0.6rem;
  margin: 0.27rem 0 0.77rem;
}
.preview-star,
.preview-rule {
  color: var(--gold);
}
.preview-star {
  font-size: 1.72rem;
  line-height: 1;
}
.preview-title,
.preview-name {
  font: 600 2.24rem/0.9 var(--serif);
  letter-spacing: -0.03em;
}
.preview-rule {
  margin: 0.65rem 0 0.52rem;
  font-size: 0.69rem;
  letter-spacing: 0.07em;
}
.preview-caption {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}
.certificate-preview .preview-name {
  font-size: 1.62rem;
  margin-top: 0.3rem;
  font-style: italic;
}
.preview-dedication {
  font-size: 0.72rem;
  line-height: 1.3;
  padding-top: 0.4rem;
}
.gift-copy > p:not(.eyebrow) {
  margin: 0 0 12px;
}
.gift-copy > .text-button {
  margin-bottom: 17px;
  font-size: 0.87rem;
}
#gift-form {
  display: grid;
  gap: 7px;
}
#gift-form label {
  margin-top: 0.22rem;
  color: #344b39;
  font-size: 0.86rem;
  font-weight: 700;
}
#gift-form label span {
  font-size: 0.8rem;
  font-weight: 400;
}
#gift-form input,
#gift-form textarea,
#gift-form select {
  width: 100%;
  border: 1px solid #b9b79f;
  border-radius: 4px;
  padding: 0.66rem 0.75rem;
  background: #fffaf0;
  color: var(--pine);
  font-size: 0.95rem;
}
#gift-form select {
  appearance: none;
  padding-right: 2rem;
  background: #fffaf0 linear-gradient(45deg, transparent 49%, #647760 51%) right
    15px center/5px 5px no-repeat;
  background-image:
    linear-gradient(45deg, transparent 49%, #647760 51%),
    linear-gradient(-45deg, transparent 49%, #647760 51%);
  background-position:
    right 15px center,
    right 10px center;
}
#gift-form textarea {
  resize: vertical;
}
.gift-action,
.checkout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.85rem;
  margin-top: 0.5rem;
}
.gift-action span {
  font-weight: 700;
  color: var(--pine);
  font-size: 0.9rem;
}
#gift-hint {
  margin: 0.15rem 0 0;
}
footer {
  border-top: 1px solid #d9ceb9;
  background: #f1e8d6;
  padding: 28px 0;
  color: var(--ink);
}
.footer-layout {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(12px, 5vw, 50px);
}
.footer-layout p {
  margin: 0;
}
.footer-layout > div:first-child p,
.footer-links {
  font-size: 0.77rem;
}
.footer-layout > div:first-child p {
  margin-top: 0.4rem;
  color: #53614e;
}
.footer-links {
  display: flex;
  gap: 13px;
  align-items: center;
  white-space: nowrap;
}
dialog {
  width: min(94vw, 570px);
  max-height: 85vh;
  padding: 0;
  border: 1px solid #b49a73;
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
}
dialog::backdrop {
  background: #132b24aa;
}
.dialog-copy {
  padding: 28px;
}
.dialog-copy h2 {
  font-size: 2.65rem;
}
@media (max-width: 960px) {
  .wrap {
    width: calc(100% - 58px);
  }
  .masthead {
    gap: 18px;
  }
  .nav-action {
    display: none;
  }
  .hero-layout {
    gap: 34px;
  }
  .photo-control {
    flex-wrap: wrap;
  }
  .footer-layout {
    gap: 16px;
  }
}
@media (max-width: 700px) {
  .wrap {
    width: calc(100% - 36px);
  }
  .masthead {
    min-height: 0;
    display: block;
    padding-block: 13px 10px;
    text-align: center;
  }
  .brand {
    font-size: 1.58rem;
  }
  .brand-mark {
    width: 29px;
    height: 29px;
  }
  .masthead nav {
    justify-content: center;
    gap: clamp(0.65rem, 4vw, 1.65rem);
    margin-top: 0.5rem;
  }
  .masthead nav a {
    font-size: 0.81rem;
  }
  .hero {
    padding: 30px 0;
  }
  .hero-layout,
  .reading-layout,
  .guide-layout,
  .certificate {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .hero-copy {
    padding: 0;
  }
  .hero-figure {
    aspect-ratio: 1.28;
  }
  .hero-actions {
    gap: 12px 17px;
  }
  .hero h1 {
    font-size: clamp(3.45rem, 12.3vw, 5.2rem);
    margin-bottom: 0.8rem;
  }
  .hero .lede {
    margin-bottom: 1rem;
  }
  .section {
    padding-block: 48px;
  }
  .values ul {
    width: calc(100% - 14px);
  }
  .values li {
    font-size: 0.7rem;
    gap: 0.2rem;
  }
  .values li span {
    display: none;
  }
  .section-heading {
    margin-bottom: 19px;
  }
  .result-cards {
    grid-template-columns: 1fr;
  }
  .gift-art {
    min-height: 395px;
  }
  .gift-copy {
    grid-row: 1;
  }
  .footer-layout {
    grid-template-columns: 1fr;
  }
  .footer-layout > .fineprint {
    max-width: 65ch;
  }
}
@media (max-width: 370px) {
  .wrap {
    width: calc(100% - 28px);
  }
  .values li {
    padding-inline: 0.3rem;
    min-height: 34px;
  }
  .masthead nav {
    gap: 0.65rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
