@layer reset, base, layout, components, utilities;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html, body, h1, h2, h3, p, figure, dl, dd, ul { margin: 0; padding: 0; }
  ul { list-style: none; }
  img, svg { display: block; max-width: 100%; height: auto; }
  input, select, textarea, button { font: inherit; color: inherit; }
}

@layer base {
  :root {
    --ink: #FDEDEE; --ground: #1A0F0F; --rose: #FED7DA; --plum: #321C1D; --lilac: #D6A0F9;
    --on-rose: #1A0F0F; --rule: #5b3a3d; --soft: #e2c9cb; --slab: #110909; --tint: #261516;
    --head: "Barlow Condensed", "Arial Narrow", sans-serif; --body: "Public Sans", system-ui, sans-serif;
  }
  html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
  body { background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.65; overflow-wrap: break-word; }
  h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.08; letter-spacing: .01em; }
  h1 { font-size: clamp(2.4rem, 6.2vw, 4.4rem); }
  h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin-bottom: .9rem; }
  h3 { font-size: 1.45rem; font-weight: 600; }
  p + p { margin-top: 1rem; }
  a { color: var(--rose); text-underline-offset: .18em; }
  a:hover { color: var(--lilac); }
  :focus-visible { outline: 3px solid var(--lilac); outline-offset: 3px; }
}

@layer layout {
  .rsk-skim { width: min(1200px, 100% - 2rem); margin-inline: auto; }
  .rsk-wall { display: grid; gap: 2.25rem; padding-block: 2.5rem 3rem; }
  .rsk-board { width: min(1200px, 100% - 2rem); margin-inline: auto; border: 2px solid var(--rule); border-radius: 3px; padding: clamp(1.4rem, 4vw, 2.75rem); display: grid; gap: 1.2rem; }
  .rsk-board > h2 { margin-bottom: 0; }
  .rsk-split { display: grid; gap: 2rem; align-items: start; }
  .rsk-prose { max-width: 72ch; }
  .rsk-prose h2 { margin-top: 2.2rem; }
  .rsk-prose > :first-child { margin-top: 0; }
  @media (min-width: 900px) {
    .rsk-split { grid-template-columns: 1.05fr 1fr; gap: 3rem; }
    .rsk-split--flip > :first-child { order: 2; }
  }
}

@layer components {
  /* header + drawer */
  .rsk-joint { position: sticky; top: 0; z-index: 50; background: var(--ground); border-bottom: 2px solid var(--rule); }
  .rsk-joint-run { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: .9rem; padding-block: .7rem; }
  .rsk-mark { font-family: var(--head); font-weight: 700; font-size: 1.45rem; color: var(--ink); text-decoration: none; line-height: 1; letter-spacing: .02em; }
  .rsk-mark b { color: var(--rose); font-weight: 700; }
  .rsk-dial { display: grid; justify-items: end; line-height: 1.2; }
  .rsk-dial a { font-weight: 700; color: var(--rose); text-decoration: none; white-space: nowrap; }
  .rsk-dial small { font-size: .78rem; color: var(--soft); white-space: nowrap; }
  .rsk-drawer summary { list-style: none; cursor: pointer; position: relative; z-index: 3; border: 2px solid var(--rose); color: var(--rose); padding: .45rem .9rem; font-weight: 700; font-size: .95rem; border-radius: 2px; user-select: none; }
  .rsk-drawer summary::-webkit-details-marker { display: none; }
  .rsk-drawer .rsk-shut, .rsk-drawer[open] .rsk-open { display: none; }
  .rsk-drawer[open] .rsk-shut { display: inline; }
  .rsk-drawer[open] summary { background: var(--rose); color: var(--on-rose); }
  .rsk-drawer-panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 2; width: min(380px, 100%); overflow-y: auto; background: var(--plum); border-left: 2px solid var(--lilac); padding: 5.5rem 2rem 2rem; display: grid; align-content: start; gap: .2rem; }
  .rsk-drawer-panel a { font-family: var(--head); font-size: 1.6rem; font-weight: 600; color: var(--ink); text-decoration: none; padding: .35rem 0; border-bottom: 1px solid var(--rule); }
  .rsk-drawer-panel a:hover { color: var(--lilac); }
  .rsk-drawer-panel .rsk-sub { font-size: 1.25rem; padding-left: 1rem; color: var(--soft); }
  @media (max-width: 520px) { .rsk-mark { font-size: 1.15rem; } .rsk-dial small { font-size: .7rem; } .rsk-joint-run { gap: .5rem; } }

  /* hero */
  .rsk-hero { padding-bottom: 2.25rem; border-bottom: 2px solid var(--rule); }
  .rsk-hero-band { background: var(--rose); color: var(--on-rose); clip-path: polygon(0 0, 100% 0, 100% 78%, 0 100%); padding: 3.2rem 0 5.4rem; }
  .rsk-hero-band h1 { max-width: 16ch; }
  .rsk-kicker { font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; margin-bottom: .8rem; }
  .rsk-hero-line { font-size: 1.2rem; max-width: 52ch; margin-top: 1rem; font-weight: 500; }
  .rsk-acts { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-top: 1.4rem; }
  .rsk-hours { margin-top: .9rem; font-weight: 500; }
  .rsk-micro { display: block; margin-top: .45rem; color: var(--soft); font-size: .95rem; }
  .rsk-btn { display: inline-block; padding: .8rem 1.3rem; border-radius: 2px; font-weight: 700; text-decoration: none; border: 2px solid var(--rose); line-height: 1.2; cursor: pointer; }
  .rsk-btn--main { background: var(--rose); color: var(--on-rose); }
  .rsk-btn--main:hover { background: var(--lilac); border-color: var(--lilac); color: var(--on-rose); }
  .rsk-btn--ghost { background: transparent; color: var(--rose); }
  .rsk-btn--lilac { background: transparent; color: var(--lilac); border-color: var(--lilac); }
  .rsk-textlink { font-weight: 700; color: var(--lilac); }

  /* photos */
  .rsk-shot img { outline: 2px solid var(--lilac); outline-offset: 7px; border-radius: 2px; width: 100%; }
  .rsk-shot { margin: 9px; }
  .rsk-shot figcaption { margin-top: 1rem; font-size: .9rem; color: var(--soft); }
  .rsk-opener { font-size: 1.14rem; }

  /* cards */
  .rsk-studs { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
  .rsk-stud { display: grid; grid-row: span 3; grid-template-rows: subgrid; gap: .6rem; background: var(--tint); border-left: 6px solid var(--lilac); padding: 1.15rem 1.25rem; }
  .rsk-stud-top { display: flex; gap: .7rem; align-items: center; }
  .rsk-stud-top svg { width: 34px; height: 34px; flex: none; color: var(--lilac); }
  .rsk-stud p { margin: 0; }
  .rsk-stud a { font-weight: 700; align-self: end; }
  .rsk-sizes .rsk-stud { grid-row: span 2; }

  /* triage */
  .rsk-triage { display: grid; gap: 1.25rem; }
  @media (min-width: 820px) { .rsk-triage { grid-template-columns: 1fr 1fr; } }
  .rsk-triage > div { border-left: 6px solid var(--lilac); background: var(--tint); padding: 1.2rem 1.3rem; }
  .rsk-triage h3 { display: flex; gap: .55rem; align-items: center; margin-bottom: .6rem; }
  .rsk-triage svg { width: 28px; height: 28px; color: var(--rose); flex: none; }

  /* form band */
  .rsk-mud { border-block: 2px solid var(--rule); background: var(--plum); padding-block: clamp(2rem, 5vw, 3.5rem); }
  .rsk-mud-grid { display: grid; gap: 2rem; }
  @media (min-width: 900px) { .rsk-mud-grid { grid-template-columns: 1fr 1.25fr; gap: 3rem; } }
  .rsk-aside-line { margin-top: 1.2rem; padding-left: 1rem; border-left: 4px solid var(--rose); }
  .rsk-aside-line strong { display: block; font-size: 1.3rem; }
  .rsk-form { display: grid; gap: 1rem; grid-template-columns: 1fr; }
  @media (min-width: 620px) { .rsk-form { grid-template-columns: 1fr 1fr; } .rsk-form .rsk-wide { grid-column: 1 / -1; } }
  .rsk-form label { display: grid; gap: .3rem; font-weight: 500; font-size: .95rem; }
  .rsk-form input, .rsk-form select, .rsk-form textarea { width: 100%; background: var(--ground); border: 2px solid var(--rule); border-radius: 2px; padding: .7rem .8rem; }
  .rsk-form input:focus, .rsk-form select:focus, .rsk-form textarea:focus { border-color: var(--lilac); outline: none; }
  .rsk-form textarea { min-height: 7.5rem; resize: vertical; }
  .rsk-form button { justify-self: start; }
  .rsk-consent { font-size: .88rem; color: var(--soft); margin-top: .9rem; }

  /* faq */
  .rsk-qa { display: grid; gap: 0; border-top: 1px solid var(--rule); }
  .rsk-qa dt { font-family: var(--head); font-size: 1.35rem; font-weight: 600; padding-top: 1.1rem; }
  .rsk-qa dd { padding: .35rem 0 1.1rem; border-bottom: 1px solid var(--rule); max-width: 70ch; }

  /* swatches */
  .rsk-swatches { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); margin-block: 1.4rem; }
  .rsk-swatch { display: grid; gap: .45rem; }
  .rsk-swatch svg { border: 2px solid var(--rule); border-radius: 2px; width: 100%; }
  .rsk-swatch span { font-weight: 700; font-size: .95rem; }
  .rsk-swatch-cap { grid-column: 1 / -1; font-size: .9rem; color: var(--soft); }

  /* page head (inner pages) */
  .rsk-plate { border-bottom: 2px solid var(--rule); padding-block: 2.6rem 2rem; background: linear-gradient(170deg, var(--plum) 0 62%, var(--ground) 62.2%); }
  .rsk-plate h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); max-width: 22ch; }
  .rsk-plate .rsk-plate-icon { width: 46px; height: 46px; color: var(--lilac); margin-bottom: .8rem; }
  .rsk-onward { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px dashed var(--rule); }
  .rsk-towns-list { columns: 2 12rem; }

  /* closing */
  .rsk-close { border-color: var(--rose); }
  .rsk-close .rsk-acts { margin-top: .4rem; }

  /* footer */
  .rsk-corner { background: var(--slab); border-top: 2px solid var(--rule); padding-block: 2.6rem 1.6rem; font-size: .92rem; color: var(--soft); }
  .rsk-corner-grid { display: grid; gap: 2rem; }
  @media (min-width: 760px) { .rsk-corner-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
  .rsk-corner h3 { font-size: 1.2rem; color: var(--ink); margin-bottom: .6rem; }
  .rsk-corner a { color: var(--soft); }
  .rsk-corner li + li { margin-top: .3rem; }
  .rsk-corner-brand { font-family: var(--head); font-size: 1.6rem; color: var(--ink); font-weight: 700; }
  .rsk-corner-base { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); display: grid; gap: .5rem; }

  /* mobile call bar */
  .rsk-callbar { display: none; }
  @media (max-width: 767px) {
    body { padding-bottom: 4.6rem; }
    .rsk-callbar { display: grid; grid-template-columns: 1.4fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; border-top: 2px solid var(--lilac); }
    .rsk-callbar a { padding: .95rem .6rem; text-align: center; font-weight: 700; text-decoration: none; font-size: .95rem; }
    .rsk-callbar a:first-child { background: var(--rose); color: var(--on-rose); }
    .rsk-callbar a:last-child { background: var(--plum); color: var(--lilac); }
  }
}

@layer utilities {
  .rsk-mt { margin-top: 1.2rem; }
  .rsk-center-self { justify-self: start; }
}
