/* The Cottage — built on shared architectural design. */

:root[data-current-theme] body.product-pantheon.product-cottage {
  --site-code: "COTTAGE";
  --paper: light-dark(#f7f2e8, #141a15);
  --paper-2: light-dark(#ede6d8, #1b231d);
  --ink: light-dark(#2c352d, #dfe6dc);
  --ink-strong: light-dark(#1b241c, #f6f8f3);
  --muted: light-dark(#5d6259, #b1bcad);
  --muted-2: light-dark(#6e7269, #8d9989);
  --muted-soft: var(--muted-2);
  --line: light-dark(rgba(46, 64, 48, 0.16), rgba(200, 222, 190, 0.16));
  --line-strong: light-dark(rgba(46, 64, 48, 0.34), rgba(200, 222, 190, 0.32));
  --surface: light-dark(rgba(255, 252, 247, 0.72), rgba(30, 40, 32, 0.72));
  --surface-strong: light-dark(rgba(255, 252, 247, 0.92), rgba(36, 48, 38, 0.92));
  --accent: light-dark(#2e4030, #a8c49c);
  --accent-text: light-dark(#2e4030, #a8c49c);
  --accent-2: light-dark(#c8553d, #e08a72);
  --accent-3: light-dark(#b5813a, #dcb06c);
  --accent-soft: light-dark(rgba(46, 64, 48, 0.12), rgba(168, 196, 156, 0.16));
  --accent-contrast: light-dark(#f7f2e8, #141a15);
  --draft-red: light-dark(#c8553d, #e08a72);
  --draft-grid: light-dark(rgba(46, 64, 48, 0.08), rgba(168, 196, 156, 0.08));
  --draft-grid-major: light-dark(rgba(46, 64, 48, 0.15), rgba(168, 196, 156, 0.15));
}

.product-cottage main,
.cottage-hero,
.cottage-hero-shell,
.cottage-hero-copy,
.cottage-hero-visual,
.cottage-device-card {
  min-width: 0;
}

.cottage-hero {
  position: relative;
  box-sizing: border-box;
  min-height: 100svh;
  border-bottom: 4px double var(--line-strong);
}

.cottage-hero::before {
  content: "";
  position: absolute;
  inset: calc(var(--header-height) + 18px) max(20px, calc((100vw - var(--max)) / 2)) 18px;
  border: 1px solid var(--draft-grid-major);
  pointer-events: none;
}

.cottage-hero-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.82fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  width: min(var(--max), calc(100% - 40px));
  min-height: calc(100svh - 4px);
  margin: 0 auto;
  padding: calc(var(--header-height) + 52px) clamp(18px, 3vw, 46px) 36px;
}

.cottage-hero-copy {
  position: relative;
  z-index: 1;
  border-left: 1px solid var(--line-strong);
  padding: 12px 0 12px clamp(20px, 3vw, 34px);
}

.cottage-hero-copy::before {
  content: "PRODUCT SHEET / SIDE PROJECT";
  position: absolute;
  top: -15px;
  left: clamp(20px, 3vw, 34px);
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.13em;
}

.cottage-hero h1 {
  max-width: 15ch;
  margin: 16px 0 18px;
  font-size: clamp(3.3rem, 4.5vw, 5.4rem);
  line-height: 0.92;
}

.cottage-hero h1 span {
  display: block;
}

.cottage-hero-lede {
  max-width: 600px;
  color: var(--muted);
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.48;
}

.cottage-pronunciation {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 18px;
  row-gap: 5px;
  align-items: baseline;
  max-width: 600px;
  margin: 18px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 0 11px;
}

.cottage-pronunciation strong {
  grid-row: 1 / 3;
  color: var(--ink-strong);
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1;
}

.cottage-pronunciation-guide {
  color: var(--accent-2);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 720;
  letter-spacing: 0.055em;
}

.cottage-pronunciation-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.cottage-hero-copy .actions {
  margin-top: 20px;
}

.cottage-hero-copy .value-strip {
  margin-top: 16px;
}

.cottage-hero-copy .value-strip li {
  min-height: 28px;
  padding: 5px 8px;
  font-size: 9px;
}

.cottage-hero-visual {
  position: relative;
  z-index: 1;
}

.cottage-device-card {
  position: relative;
  border: 1px solid var(--line-strong);
  padding: 46px clamp(20px, 3vw, 30px) 24px;
  background: color-mix(in srgb, var(--surface-strong) 82%, transparent);
  box-shadow: inset 0 0 0 6px color-mix(in srgb, var(--paper) 78%, transparent), inset 0 0 0 7px var(--line), var(--draft-shadow);
}

.cottage-device-card::before {
  content: "THE COTTAGE / IPHONE + MESSAGES";
  position: absolute;
  top: 17px;
  left: 18px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.13em;
}

.cottage-icon-frame {
  display: grid;
  place-items: center;
  min-height: clamp(175px, 23vh, 225px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background-color: color-mix(in srgb, var(--paper) 78%, transparent);
}

.cottage-app-icon {
  display: block;
  width: min(170px, 54%);
  height: auto;
  border: 1px solid var(--line);
  border-radius: 22%;
  box-shadow: 0 24px 42px rgba(20, 30, 22, 0.2);
}

.cottage-fact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 0 0;
}

.cottage-fact-grid > div {
  min-width: 0;
  border-right: 1px solid var(--line);
  padding: 0 14px;
}

.cottage-fact-grid > div:first-child {
  padding-left: 0;
}

.cottage-fact-grid > div:last-child {
  border-right: 0;
  padding-right: 0;
}

.cottage-fact-grid dt,
.cottage-card-label,
.cottage-availability-label,
.product-cottage .policy-updated {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.cottage-fact-grid dd {
  margin: 7px 0 0;
  color: var(--ink-strong);
  font-family: var(--display);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1;
}

.cottage-card-grid,
.cottage-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.cottage-card {
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
  padding: 28px 6px 30px;
}

.cottage-card h3 {
  margin: 10px 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.cottage-card p:last-child {
  margin-bottom: 0;
}

.cottage-trust-card {
  display: grid;
  align-content: start;
  min-height: 240px;
  border: 1px solid var(--line-strong);
  padding: clamp(26px, 4vw, 40px);
  color: inherit;
  background: color-mix(in srgb, var(--surface) 74%, transparent);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

a.cottage-trust-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.cottage-trust-card .step-index {
  margin-bottom: 28px;
}

.cottage-trust-card p {
  margin-bottom: 0;
}

.cottage-availability {
  text-align: center;
}

.cottage-availability h2,
.cottage-availability p {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
}

.cottage-artist-actions {
  margin-top: 28px;
}

.cottage-availability .actions {
  justify-content: center;
  margin-top: 22px;
}

.cottage-availability-label {
  display: block;
  margin-top: 22px;
  color: var(--accent-text);
}

.product-cottage .policy-updated {
  margin-top: 22px;
}

.product-cottage .policy-summary {
  grid-column: 1 / -1;
}

.product-cottage .policy-summary p {
  max-width: 900px;
  font-size: 18px;
}

.product-cottage .policy-card-wide {
  grid-column: 1 / -1;
}

.product-cottage .policy-card-wide p {
  max-width: 920px;
}

.product-cottage .page-hero h1 {
  max-width: 13ch;
}

.product-cottage .page-hero .eyebrow::before {
  content: "THE COTTAGE / POLICY";
}

@media (max-width: 980px) {
  .cottage-hero-shell {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: calc(var(--header-height) + 72px);
  }

  .cottage-hero-copy {
    max-width: 760px;
  }

  .cottage-hero-visual {
    width: min(620px, 100%);
    margin: 0 auto;
  }
}

@media (max-width: 760px) {
  .cottage-hero {
    min-height: auto;
  }

  .cottage-hero::before {
    inset: calc(var(--header-height) + 12px) 14px 12px;
  }

  .cottage-hero-shell {
    width: min(100% - 28px, var(--max));
    min-height: auto;
    gap: 24px;
    align-content: start;
    padding: calc(var(--header-height) + 52px) 18px 34px;
  }

  .cottage-hero h1 {
    max-width: none;
    margin-top: 12px;
    margin-bottom: 13px;
    font-size: clamp(2.5rem, 10.7vw, 3.2rem);
    line-height: 0.94;
    text-wrap: balance;
  }

  .cottage-hero-lede {
    font-size: 15px;
    line-height: 1.42;
  }

  .cottage-hero-copy .value-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 12px;
  }

  .cottage-hero-copy .value-strip li {
    justify-content: center;
    min-height: 26px;
    padding: 4px 6px;
    font-size: 8px;
  }

  .cottage-hero-visual {
    width: min(420px, 100%);
  }

  .cottage-device-card {
    display: grid;
    grid-template-columns: minmax(94px, 0.72fr) minmax(0, 1.28fr);
    gap: 14px;
    align-items: center;
    padding: 40px 14px 14px;
  }

  .cottage-icon-frame {
    min-height: 112px;
    border: 1px solid var(--line);
  }

  .cottage-app-icon {
    width: min(94px, 74%);
  }

  .cottage-fact-grid {
    grid-template-columns: 1fr;
    margin: 0;
  }

  .cottage-fact-grid > div,
  .cottage-fact-grid > div:first-child,
  .cottage-fact-grid > div:last-child {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 6px 0;
  }

  .cottage-fact-grid > div:last-child {
    border-bottom: 0;
  }

  .cottage-fact-grid dd {
    margin-top: 0;
    font-size: 1.1rem;
  }

  .cottage-card-grid,
  .cottage-trust-grid {
    grid-template-columns: 1fr;
  }

  .cottage-trust-card {
    min-height: 0;
  }

  .product-cottage .policy-summary,
  .product-cottage .policy-card-wide {
    grid-column: auto;
  }
}

@media (max-width: 480px) {
  .cottage-hero-shell {
    width: calc(100% - 20px);
    gap: 20px;
    padding: calc(var(--header-height) + 42px) 10px 26px;
  }

  .cottage-hero-copy {
    border-top: 1px solid var(--line-strong);
    border-left: 0;
    padding: 24px 2px 4px;
  }

  .cottage-hero-copy::before {
    top: 8px;
    left: 2px;
  }

  .cottage-hero h1 {
    font-size: clamp(2.2rem, 11.8vw, 2.8rem);
  }

  .cottage-hero h1 span {
    display: inline;
  }

  .cottage-pronunciation {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .cottage-pronunciation strong {
    grid-row: auto;
  }

  .cottage-device-card {
    grid-template-columns: 1fr;
  }
}
