/* Husmor.ai — shared styles for all language versions */

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 400 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #f5eddc;
  --paper: #fbf7ee;
  --sand: #eadfc8;
  --ink: #2a2520;
  --ink-soft: #574e45;
  --forest: #2e4a3b;
  --forest-deep: #1f3a2c;
  --rust: #b5532b;
  --rust-text: #9e4622;
  --mustard: #e0a93b;
  --mustard-soft: #f3ddae;
  --sage: #a8b89a;
  --teal: #9dbdbe;
  --clay: #e3a587;

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  background: var(--forest);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
}
.skip:focus { top: 12px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Header ---------- */

.site-header { padding-block: 18px; }
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--forest);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  line-height: 1;
}
.brand svg { width: 34px; height: 34px; flex: none; }
.brand em { font-style: italic; font-weight: 500; color: var(--rust-text); }

.nav {
  display: none;
  gap: 26px;
  margin-left: auto;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav a { text-decoration: none; color: var(--ink-soft); }
.nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

.header-end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.sale-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--forest);
  text-decoration: none;
  padding: 6px 12px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  white-space: nowrap;
}
.sale-link::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--rust);
}
.sale-link:hover { background: var(--forest); color: var(--paper); }
.sale-link .long { display: none; }

.lang {
  display: flex;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 999px;
  background: var(--sand);
  padding: 3px;
}
.lang a {
  text-decoration: none;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--ink-soft);
}
.lang a[aria-current="page"] { background: var(--paper); color: var(--ink); }
.lang a:not([aria-current]):hover { color: var(--ink); }

/* Small phones: logo, sale link and language switch must share one row */
@media (max-width: 400px) {
  .site-header .wrap { gap: 8px; }
  .brand { font-size: 1.2rem; gap: 7px; }
  .brand svg { width: 28px; height: 28px; }
  .header-end { gap: 6px; }
  .sale-link { padding: 5px 10px; font-size: 0.8125rem; }
  .sale-link::before { display: none; }
  .lang a { padding: 4px 7px; }
}
@media (min-width: 560px) {
  .sale-link .long { display: inline; }
  .sale-link .short { display: none; }
}
@media (min-width: 980px) {
  .nav { display: flex; }
  .header-end { margin-left: 26px; }
}

/* ---------- Hero ---------- */

.hero { padding-block: clamp(20px, 5vw, 56px) clamp(40px, 6vw, 72px); }
.hero .wrap {
  display: grid;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1.08fr 1fr; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rust-text);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: currentColor;
}

h1 {
  font-family: var(--display);
  font-weight: 650;
  font-size: clamp(2.6rem, 7.4vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--forest);
  text-wrap: balance;
}
h1 em {
  display: block;
  margin-top: 0.12em;
  font-style: italic;
  font-weight: 500;
  color: var(--rust-text);
}
.lede {
  margin-top: 24px;
  font-size: clamp(1.125rem, 1.8vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 36ch;
}
.lede strong { color: var(--ink); font-weight: 600; }

.chips {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chips a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  background: var(--paper);
  border: 1.5px solid var(--sand);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
}
.chips a:hover { border-color: var(--forest); }
.chips i {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--c);
}

.hero-art { position: relative; max-width: 600px; margin-inline: auto; width: 100%; }
.stamp {
  position: absolute;
  top: -2%;
  right: -2%;
  width: clamp(92px, 20%, 128px);
  height: auto;
}
.stamp text {
  font-family: var(--body);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  fill: var(--forest);
}
@media (prefers-reduced-motion: no-preference) {
  .stamp .ring { animation: spin 40s linear infinite; transform-origin: 60px 60px; }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Section basics ---------- */

.section { padding-block: clamp(64px, 10vw, 120px); }
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
h2 {
  font-family: var(--display);
  font-weight: 650;
  font-size: clamp(2.1rem, 4.8vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--forest);
  text-wrap: balance;
}
h2 em { font-style: italic; font-weight: 500; color: var(--rust-text); }
.section-head p:not(.eyebrow) {
  margin-top: 18px;
  font-size: 1.15rem;
  color: var(--ink-soft);
}
h3 {
  font-family: var(--display);
  font-weight: 650;
  font-size: 1.5rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.wavy + .section { padding-top: clamp(48px, 7vw, 88px); }
.wavy {
  display: block;
  width: 100%;
  height: 18px;
  color: var(--sand);
}

/* ---------- Themes ---------- */

.themes {
  display: grid;
  gap: clamp(18px, 2.5vw, 28px);
}
@media (min-width: 700px) { .themes { grid-template-columns: 1fr 1fr; } }

.theme {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  scroll-margin-top: 24px;
}
.theme-art {
  background: var(--bg);
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  position: relative;
}
.theme-art img { width: 82%; }
.theme-num {
  position: absolute;
  top: 16px;
  left: 18px;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--fg, var(--ink));
}
.theme-body { padding: 24px 24px 28px; }
.theme-body h3 { color: var(--forest); }
.theme-body p { margin-top: 10px; color: var(--ink-soft); }
.theme-body ul {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.theme-body li {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink-soft);
}

.figure {
  margin-top: clamp(28px, 4vw, 44px);
  border-radius: var(--radius);
  overflow: hidden;
  background: #c4d0ba;
}
.figure img { width: 100%; }
.figure figcaption {
  padding: 14px 20px 16px;
  font-size: 0.9375rem;
  color: var(--forest-deep);
  background: #c4d0ba;
}

/* ---------- The week ---------- */

.week-section {
  background: var(--forest);
  color: var(--paper);
  position: relative;
}
.week-section h2 { color: var(--paper); }
.week-section h2 em { color: var(--mustard); }
.week-section .section-head p:not(.eyebrow) { color: #dfe5d8; }
.week-section .eyebrow { color: var(--mustard); }

.board {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}
.day {
  background: var(--paper);
  color: var(--ink);
  border-radius: 12px;
  padding: 26px 20px 20px;
  position: relative;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12), 0 10px 22px -12px rgba(0, 0, 0, 0.4);
}
.day::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  width: 64px;
  height: 20px;
  margin-left: -32px;
  background: var(--tape, var(--mustard));
  opacity: 0.88;
  transform: rotate(-3deg);
}
.day:nth-child(odd) { transform: rotate(-0.8deg); }
.day:nth-child(even) { transform: rotate(0.7deg); }
.day:nth-child(3n) { --tape: var(--clay); }
.day:nth-child(4n) { --tape: var(--sage); }
.day h3 {
  font-size: 1.45rem;
  color: var(--forest);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.day h3 small {
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rust-text);
}
.day ul { margin-top: 12px; display: grid; gap: 10px; }
.day li {
  font-size: 0.975rem;
  line-height: 1.4;
  padding-left: 22px;
  position: relative;
}
.day li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 13px;
  height: 13px;
  border: 2px solid var(--ink);
  border-radius: 4px;
}
.who {
  display: inline-block;
  margin-left: 4px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.6;
  vertical-align: 1px;
  background: var(--w);
  color: var(--ink);
  white-space: nowrap;
}
.w-nora { --w: #f0c9b6; }
.w-amir { --w: #cfdcc4; }
.w-selma { --w: #f3ddae; }
.w-theo { --w: #cde0e0; }
.w-all { --w: var(--sand); }

.legend {
  background: transparent;
  border: 2px dashed rgba(251, 247, 238, 0.45);
  border-radius: 12px;
  padding: 22px 20px;
  color: var(--paper);
}
.legend h3 { font-size: 1.3rem; color: var(--paper); }
.legend p { margin-top: 8px; font-size: 0.95rem; color: #dfe5d8; }
.legend ul { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.legend .who { margin: 0; font-size: 0.8125rem; padding: 2px 10px; }

/* ---------- Tips ---------- */

.tips {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
}
@media (min-width: 760px) { .tips { grid-template-columns: 1fr 1fr; } }
.tip-group {
  border-top: 3px solid var(--forest);
  padding-top: 22px;
}
.tip-group h3 {
  color: var(--forest);
  display: flex;
  align-items: center;
  gap: 12px;
}
.tip-group h3 svg { width: 30px; height: 30px; flex: none; }
.tip-group ul { margin-top: 16px; display: grid; gap: 14px; }
.tip-group li {
  padding-left: 26px;
  position: relative;
  color: var(--ink-soft);
}
.tip-group li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dot, var(--mustard));
}
.tip-group li strong { color: var(--ink); font-weight: 650; }

.kids {
  margin-top: clamp(56px, 8vw, 88px);
  background: var(--paper);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 44px);
}
.kids > h3 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); color: var(--forest); }
.kids > p { margin-top: 10px; color: var(--ink-soft); max-width: 60ch; }
.ages {
  margin-top: 28px;
  display: grid;
  gap: 16px;
}
@media (min-width: 640px) { .ages { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) {
  .ages { grid-template-columns: repeat(4, 1fr); align-items: end; }
  .age:nth-child(1) { min-height: 270px; }
  .age:nth-child(2) { min-height: 310px; }
  .age:nth-child(3) { min-height: 350px; }
  .age:nth-child(4) { min-height: 390px; }
}
.age {
  background: var(--bg);
  border-radius: 14px 14px 6px 6px;
  padding: 20px 18px;
  position: relative;
  background-image: repeating-linear-gradient(to bottom, transparent 0 23px, rgba(42, 37, 32, 0.18) 23px 24px);
  background-size: 14px 100%;
  background-repeat: no-repeat;
  background-position: right 0 top 0;
}
.age h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 650;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--forest-deep);
}
.age ul { margin-top: 12px; display: grid; gap: 6px; padding-right: 10px; }
.age li { font-size: 0.95rem; line-height: 1.4; }
.age li::before { content: "– "; }

/* ---------- Domain for sale ---------- */

.sale { padding-block: 0 clamp(64px, 10vw, 112px); }
.sale-card {
  position: relative;
  background: var(--mustard-soft);
  border-radius: 28px;
  padding: clamp(32px, 6vw, 72px);
  overflow: hidden;
  display: grid;
  gap: 28px;
}
@media (min-width: 860px) {
  .sale-card { grid-template-columns: 1.4fr 1fr; align-items: end; }
}
.sale-card h2 { max-width: 14ch; }
.sale-card p:not(.eyebrow) { margin-top: 16px; font-size: 1.15rem; color: var(--ink-soft); max-width: 46ch; }
.sale-card .note { font-size: 0.95rem; }
.contact {
  display: grid;
  gap: 8px;
  justify-items: start;
}
.contact span {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rust-text);
}
.mail {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  font-weight: 600;
  color: var(--forest);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  text-decoration-color: var(--rust);
  word-break: break-word;
}
.mail:hover { color: var(--rust-text); }
.sale-sun {
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  opacity: 0.9;
  pointer-events: none;
}
.sale-card > :not(.sale-sun) { position: relative; }
@media (max-width: 859px) { .sale-sun { width: 150px; right: -56px; top: auto; bottom: -56px; } }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--forest-deep);
  color: #dfe5d8;
  padding-block: 44px;
  font-size: 0.95rem;
}
.site-footer .wrap {
  display: grid;
  gap: 22px;
}
@media (min-width: 760px) {
  .site-footer .wrap { grid-template-columns: 1fr auto; align-items: center; }
}
.site-footer .brand { color: var(--paper); }
.site-footer .brand em { color: var(--mustard); }
.site-footer p { margin-top: 10px; max-width: 52ch; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-links a { color: var(--paper); text-underline-offset: 4px; }
