/* That Brand "palace" page layer: Home, About, Contact. Ported from the mock pages (index.html, about.html, contact.html);
   everything here sits on top of the shared base in palace.css. Loaded on every page, so each rule is scoped to its page's own classes. */

/* ============================================================ HOME */

/* the hero drops are links here (hover or focus a name and its photograph fades in) */
.drops a { display: block; text-decoration: none; font-family: var(--display); font-weight: 900; letter-spacing: -.035em; font-size: clamp(26px, 3vw, 42px); line-height: 1.08; color: #8f8d82; transition: color .2s; }
.drops a:hover { color: #d6d2c7; }
.drops a[data-on] { color: var(--white); }
.drops a[data-on]::before { content: ""; display: inline-block; width: .34em; height: .34em; margin-right: .3em; background: var(--white); vertical-align: .08em; }

/* the web shop preview: four across, big portrait tiles, only the name and price under each */
.home-shop .bar h2 { margin: 0; font: inherit; }
.home-shop .bar .filters { gap: 4px 18px; }
.home-shop .bar .filters a { padding: 0; border: 0; text-decoration: none; transition: color .15s; }
.home-shop .bar .filters a:hover { color: var(--ink); }
.home-shop .grid { grid-template-columns: repeat(4, 1fr); }
.home-shop .item .name { font-size: 22px; }
.home-shop .item .price del { color: var(--grey); }
.home-shop .item .price ins { text-decoration: none; }

/* advice */
.home-advice { padding-top: 96px; padding-bottom: 96px; }

@media (max-width: 900px) {
  .home-shop .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .home-shop .grid { grid-template-columns: repeat(2, 1fr); }
  .home-shop .item .name { font-size: 18px; }
  .home-shop .item .meta { flex-wrap: wrap; gap: 4px 12px; }
}

/* ============================================================ ABOUT */

/* a sticky photograph beside the story, three short beliefs, the spec table, the closing frame */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--gap); padding: var(--gap) var(--gap) 0; align-items: start; margin-top: 22px; border-top: 2px solid var(--ink); }
.story .pic { position: sticky; top: var(--gap); height: calc(100svh - 2 * var(--gap)); overflow: hidden; background: var(--ink); }
.story .pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform 1.4s var(--ease); }
.story .pic:hover img { transform: scale(1.025); }
.story .words { padding: 84px 6% 40px 4%; display: flex; flex-direction: column; gap: 44px; min-height: calc(100svh - 2 * var(--gap)); justify-content: space-between; }
.story .statement { margin: 0; font-family: var(--display); font-weight: 900; letter-spacing: -.04em; font-size: clamp(32px, 4vw, 60px); line-height: 1.04; }
.story .statement .grey { color: #6b685f; }
.story .copy { margin: 0; max-width: 46ch; font-size: 13px; line-height: 1.75; }
.beliefs { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.beliefs li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 16px; padding: 18px 0 17px; border-bottom: 1px solid var(--line); }
.beliefs .no { font-size: 12px; color: var(--grey); padding-top: 6px; font-variant-numeric: tabular-nums; }
.beliefs h2 { margin: 0; font-family: var(--display); font-weight: 900; letter-spacing: -.035em; font-size: clamp(22px, 2vw, 30px); line-height: 1.05; }
.beliefs p { grid-column: 2; margin: 4px 0 0; font-size: 13px; line-height: 1.7; max-width: 44ch; }
.specs { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 20px 56px; padding: 96px 6px 96px; }
.specs h2 { margin: 0; font-family: var(--display); font-weight: 900; letter-spacing: -.045em; font-size: clamp(38px, 5vw, 80px); line-height: .95; }
.specs h2 span { color: #6b685f; }
.specs .facts li { padding: 18px 0 17px; font-size: 14px; }
.specs .facts a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.about-close > .photo { object-position: 50% 50%; }
@media (max-width: 900px) {
  .story { grid-template-columns: 1fr; }
  .story .pic { position: relative; top: 0; height: 74svh; min-height: 420px; }
  .story .words { padding: 36px 6px 40px; min-height: 0; gap: 32px; }
  .specs { grid-template-columns: 1fr; padding: 64px 6px; }
}
@media (max-width: 600px) { .about-close .panel { max-width: none; left: 12px; right: 12px; bottom: 12px; } }

/* ============================================================ CONTACT */

/* the form on the left, a black slab of plain details on the right, then the answers */
.contact { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--gap); padding: 0 var(--gap); align-items: start; }
.contact .box { padding: 0 6px 8px; }
.contact .box h2 { margin: 0 0 18px; padding: 0 0 12px; border-bottom: 2px solid var(--ink); font-size: 12px; font-weight: 400; text-transform: uppercase; }
.contact .thanks { margin: 0; padding: 8px 0 0; font-family: var(--display); font-weight: 900; letter-spacing: -.04em; font-size: clamp(34px, 4vw, 60px); line-height: 1; }
.contact .thanks span { color: #6b685f; }
.contact .f textarea::placeholder { color: #a39f93; text-transform: uppercase; }
.contact .form-error { color: var(--ink); font-weight: 700; text-transform: uppercase; }
.contact .slab { position: sticky; top: 70px; }
.contact .slab h2 { margin: 0 0 8px; }
.contact .slab .why { margin: 0 0 24px; }
.contact .slab dl { margin: 0; border-top: 1px solid #5a5849; }
.contact .slab dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0 13px; border-bottom: 1px solid #5a5849; font-size: 13px; text-transform: uppercase; }
.contact .slab dt { color: #b9b5a8; }
.contact .slab dd { margin: 0; text-align: right; }
.contact .slab dd a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.answers { padding: 96px var(--gap) 96px; }
.qa { padding: 0 6px; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 20px 56px; }
.qa h2 { margin: 0; font-family: var(--display); font-weight: 900; letter-spacing: -.045em; font-size: clamp(38px, 5vw, 80px); line-height: .95; }
.qa h2 span { color: #6b685f; }
.answers .acc { margin-top: 0; border-top: 0; }
.acc details { border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.acc details:first-child { border-top: 2px solid var(--ink); }
.acc summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0 19px; list-style: none; cursor: pointer; text-transform: uppercase; font-size: 13px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 18px; line-height: 1; }
.acc details[open] summary::after { content: "\2212"; }
.acc details > div { padding: 0 0 22px; font-size: 13px; line-height: 1.75; max-width: 52ch; }
.acc details > div a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (max-width: 900px) {
  .contact { grid-template-columns: 1fr; }
  .contact .slab { position: static; }
  .answers { padding: 64px var(--gap); }
  .qa { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { .contact .two { grid-template-columns: 1fr; } }
