@font-face {
  font-family: "Tsquare Hand";
  src: url("/templates/couple-v1/assets/LXGWWenKaiTC-Light.woff") format("woff");
  font-display: swap;
}

:root {
  --paper: #fbf1df;
  --paper-deep: #f2dfbf;
  --paper-soft: #fff9ed;
  --ink: #332a24;
  --muted: #6f5f52;
  --teal: #236f70;
  --teal-dark: #175557;
  --coral: #c8796a;
  --mustard: #c69546;
  --sage: #6d7c57;
  --line: rgba(72, 55, 40, 0.28);
  --shadow: 0 18px 45px rgba(85, 58, 32, 0.13);
  --shell: min(1180px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--mustard);
  outline-offset: 4px;
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 14px;
  color: #fff;
  background: var(--teal-dark);
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.section-shell {
  width: var(--shell);
  margin: 0 auto;
}

.paper-section {
  position: relative;
  padding: 110px 0;
}

.paper-section + .paper-section {
  border-top: 1px dashed rgba(95, 68, 43, 0.27);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(72, 55, 40, 0.14);
  background: rgba(251, 241, 223, 0.94);
  backdrop-filter: blur(16px);
}

.site-header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
  width: var(--shell);
  min-height: 76px;
  margin: 0 auto;
}

.brand-lockup {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  color: var(--teal-dark);
  font-size: 0.83rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  line-height: 1.1;
  text-decoration: none;
}

.brand-lockup img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 7px 12px rgba(35, 55, 76, 0.2));
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.site-nav a,
.language-switcher button {
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--teal);
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--line);
}

.language-switcher button {
  min-width: 44px;
  min-height: 44px;
  padding: 5px 2px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.language-switcher button[aria-pressed="true"] {
  color: var(--teal-dark);
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.hero {
  min-height: min(820px, calc(100svh - 76px));
  padding: 0;
  overflow: hidden;
}

.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: translate3d(0, var(--hero-shift, 0), 0) scale(1.015);
  will-change: transform;
}

.hero-shell {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(820px, calc(100svh - 76px));
}

.hero-copy {
  width: min(560px, 51%);
  padding: 86px 0 110px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: "Tsquare Hand", "Segoe Print", cursive;
  font-weight: 700;
}

h1 {
  max-width: 600px;
  margin-bottom: 24px;
  font-size: clamp(3.6rem, 7vw, 6.6rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

h3 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.08;
}

.hero-lead,
.section-heading > p:last-child,
.preview-copy > p:last-child {
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  line-height: 1.72;
}

.hero-lead {
  max-width: 520px;
  margin: 0;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 2px solid var(--teal);
  border-radius: 12px 10px 14px 9px;
  color: var(--teal-dark);
  background: var(--paper-soft);
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-shadow: 3px 4px 0 rgba(35, 111, 112, 0.16);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px) rotate(-0.3deg);
  box-shadow: 5px 7px 0 rgba(35, 111, 112, 0.18);
}

.button:disabled {
  color: rgba(72, 55, 40, 0.58);
  border-color: rgba(72, 55, 40, 0.22);
  background: rgba(239, 229, 210, 0.72);
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.72;
}

.button:disabled:hover {
  background: rgba(239, 229, 210, 0.72);
  box-shadow: none;
  transform: none;
}

.button-primary {
  color: #fffaf0;
  background: var(--teal);
}

.button-primary:hover {
  background: var(--teal-dark);
}

.button-secondary {
  color: var(--ink);
  border-color: rgba(72, 55, 40, 0.42);
}

.section-heading {
  max-width: 750px;
  margin-bottom: 50px;
}

.section-heading-centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.story {
  padding-top: 90px;
}

.story-art,
.preview-art,
.process-art {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 26px 18px 30px 16px;
  mix-blend-mode: multiply;
}

.story-labels,
.process-steps {
  display: grid;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.story-labels {
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.story-labels li {
  display: grid;
  gap: 5px;
  text-align: center;
}

.story-labels strong,
.process-steps strong {
  color: var(--ink);
  font-family: "Tsquare Hand", "Segoe Print", cursive;
  font-size: 1.4rem;
}

.story-labels span {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.templates {
  background: rgba(255, 249, 237, 0.55);
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.template-loading {
  grid-column: 1 / -1;
  padding: 40px;
  color: var(--muted);
  text-align: center;
}

.template-card {
  position: relative;
  display: flex;
  height: 100%;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 2px solid rgba(72, 55, 40, 0.31);
  border-radius: 20px 14px 24px 16px;
  background: rgba(255, 249, 237, 0.88);
  box-shadow: var(--shadow);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.template-card:nth-child(even) {
  transform: rotate(0.35deg);
}

.template-card.is-selected {
  border-color: var(--teal);
  box-shadow: 7px 9px 0 rgba(35, 111, 112, 0.2), var(--shadow);
}

.template-art {
  width: 100%;
  height: auto;
  aspect-ratio: 1.55;
  object-fit: contain;
  border-bottom: 1px dashed rgba(72, 55, 40, 0.3);
  background: var(--paper-deep);
}

.template-card-body {
  display: flex;
  min-height: 255px;
  flex: 1;
  flex-direction: column;
  padding: 28px;
}

.template-card h3 {
  margin-bottom: 8px;
}

.template-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.template-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 18px 0 22px;
}

.template-tags span {
  padding: 5px 9px;
  border: 1px solid rgba(72, 55, 40, 0.24);
  border-radius: 7px;
  color: var(--teal-dark);
  background: var(--paper);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.template-actions {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: auto;
}

.template-actions .button {
  width: 100%;
  flex: 0 0 auto;
}

.selection-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 32px;
  padding: 22px 24px;
  border: 1px dashed rgba(72, 55, 40, 0.42);
  border-radius: 14px 19px 12px 20px;
  background: rgba(251, 241, 223, 0.82);
}

.selection-note div {
  display: grid;
  gap: 3px;
}

.selection-note span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.selection-note strong {
  min-height: 1.75rem;
  font-family: "Tsquare Hand", "Segoe Print", cursive;
  font-size: 1.6rem;
}

.preview-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.5fr);
  align-items: center;
  gap: 34px;
}

.preview-copy {
  padding-left: 20px;
}

.preview-art {
  border-radius: 22px 15px 28px 18px;
}

.process-art {
  margin-top: -22px;
}

.process-steps {
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.process-steps li {
  display: grid;
  justify-items: center;
  gap: 5px;
  text-align: center;
}

.process-steps li > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  margin-bottom: 2px;
  border-radius: 50%;
  color: #fff;
  background: var(--teal);
  font-size: 0.8rem;
  font-weight: 900;
}

.process-steps p,
.assurance-grid p,
.order-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.notebook-panel {
  padding: 55px;
  border: 2px solid rgba(72, 55, 40, 0.28);
  border-radius: 24px 16px 27px 18px;
  background: rgba(255, 249, 237, 0.88);
  box-shadow: var(--shadow);
}

.assurance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.assurance-grid article {
  min-width: 0;
  padding: 18px 24px;
  text-align: center;
}

.assurance-grid article + article {
  border-left: 1px dashed rgba(72, 55, 40, 0.34);
}

.assurance-grid strong {
  display: block;
  margin-bottom: 10px;
  color: var(--teal-dark);
  font-family: "Tsquare Hand", "Segoe Print", cursive;
  font-size: 1.28rem;
}

.order {
  padding-bottom: 130px;
}

.order-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.order-grid article {
  display: flex;
  min-height: 310px;
  flex-direction: column;
  align-items: flex-start;
  padding: 38px;
  border: 2px solid var(--teal);
  border-radius: 18px 24px 15px 27px;
  background: rgba(255, 249, 237, 0.86);
  box-shadow: var(--shadow);
}

.order-grid article:nth-child(2) {
  border-color: var(--coral);
}

.order-kicker {
  margin-bottom: 12px !important;
  color: var(--teal-dark) !important;
  font-size: 0.78rem !important;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.order-grid h3 {
  max-width: 470px;
  margin-bottom: 14px;
}

.order-grid .button {
  margin-top: auto;
}

.site-footer {
  padding: 44px 0;
  border-top: 1px solid rgba(72, 55, 40, 0.18);
  color: #fef7e8;
  background: #2f4948;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.footer-brand img {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
}

.footer-brand strong {
  max-width: 120px;
  font-size: 0.79rem;
  letter-spacing: 0.08em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
}

.footer-links a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  color: #fef7e8;
  font-size: 0.82rem;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.site-footer p {
  margin: 0;
  color: rgba(254, 247, 232, 0.74);
  font-size: 0.82rem;
  text-align: right;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1099px) {
  .template-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  :root {
    --shell: min(100vw - 32px, 1180px);
  }

  .site-header-inner {
    grid-template-columns: auto 1fr;
  }

  .site-nav {
    display: none;
  }

  .language-switcher {
    justify-self: end;
  }

  .hero,
  .hero-shell {
    min-height: 730px;
  }

  .hero-art {
    object-position: 59% center;
    opacity: 0.75;
  }

  .hero-copy {
    width: min(570px, 72%);
    padding-top: 70px;
  }

  .preview-layout {
    grid-template-columns: 1fr;
  }

  .preview-copy {
    max-width: 680px;
    padding-left: 0;
  }

  .assurance-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .assurance-grid article:nth-child(3) {
    border-left: 0;
  }

  .assurance-grid article:nth-child(n + 3) {
    border-top: 1px dashed rgba(72, 55, 40, 0.34);
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .site-footer p {
    text-align: center;
  }
}

@media (max-width: 680px) {
  :root {
    --shell: min(100vw - 24px, 1180px);
  }

  .paper-section {
    padding: 76px 0;
  }

  .site-header-inner {
    min-height: 68px;
    gap: 12px;
  }

  .brand-lockup {
    gap: 8px;
    font-size: 0.68rem;
  }

  .brand-lockup img {
    width: 39px;
    height: 39px;
  }

  .language-switcher {
    gap: 4px;
  }

  .language-switcher button {
    font-size: 0.76rem;
  }

  .hero {
    min-height: 760px;
  }

  .hero-shell {
    min-height: 760px;
    align-items: flex-start;
  }

  .hero-art {
    width: 165%;
    max-width: none;
    height: auto;
    top: auto;
    right: auto;
    bottom: 0;
    left: -55%;
    opacity: 1;
    object-fit: contain;
    object-position: center;
  }

  .hero-copy {
    width: 100%;
    padding: 66px 0 320px;
    text-align: center;
  }

  h1 {
    margin-right: auto;
    margin-left: auto;
    font-size: clamp(3.3rem, 16vw, 5.2rem);
  }

  .hero-lead {
    margin: 0 auto;
    font-size: 1rem;
  }

  .button-row {
    justify-content: center;
  }

  .section-heading {
    margin-bottom: 34px;
  }

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

  .story-labels {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .story-labels li {
    padding: 0 18px;
  }

  .template-card:nth-child(even) {
    transform: none;
  }

  .template-card-body {
    min-height: 0;
    padding: 22px;
  }

  .selection-note {
    align-items: stretch;
    flex-direction: column;
  }

  .selection-note .button {
    width: 100%;
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 14px;
  }

  .notebook-panel {
    width: min(100vw - 20px, 1180px);
    padding: 36px 18px;
  }

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

  .assurance-grid article + article,
  .assurance-grid article:nth-child(3) {
    border-top: 1px dashed rgba(72, 55, 40, 0.34);
    border-left: 0;
  }

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

  .order-grid article {
    min-height: 290px;
    padding: 28px;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .hero-art {
    transform: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
