/* door-craft.css: the public threshold. An editorial local promise, two clear ways in, and one quiet county
   colophon stand on the existing Martin plate. Solid cards, EB Garamond, the red initial and gilt rules carry
   the identity; no new art, colours or decorative motion. Existing tokens only. */

/* The hero reads like the title page of a local notice, not a generic welcome panel. */
.door-hero{
  align-items:flex-start;
  justify-content:center;
  text-align:left;
  border-color:color-mix(in srgb,var(--door-gilt) 50%,var(--line));
  background:
    radial-gradient(75% 65% at 0% 0%,color-mix(in srgb,var(--door-gilt) 15%,transparent),transparent 72%),
    var(--card);
  box-shadow:none;
  padding:clamp(1.5rem,4vw,3.5rem);
}
.door-hero::before{content:none}
.door-kicker{
  color:var(--door-gilt);
  font-family:var(--font-display);
  font-size:.95rem;
  font-variant-caps:all-small-caps;
  font-weight:600;
  letter-spacing:.16em;
}
.door-hero .door-title{
  max-width:13ch;
  /* Capped at its 1600px size: at 1920 a taller title left a 121px empty band under the county card. */
  font-size:clamp(3rem,1.4rem + 3.3vw,4.35rem);
  letter-spacing:-.018em;
  line-height:1.01;
  text-shadow:0 1px 0 rgba(0,0,0,.45);
}
.door-hero .door-rule{
  width:min(18rem,70%);
  margin:.25rem 0;
  transform-origin:left;
  background:linear-gradient(90deg,var(--door-gilt),transparent);
}
.door-hero .door-rule::before{left:-1px}
.door-hero .door-lede{max-width:34rem;font-size:clamp(1.1rem,1rem + .35vw,1.3rem);line-height:1.5}
@media (max-width:640px){
  .door-columns{row-gap:1rem;padding-block:1rem 1.5rem}
  .door-main,.door-side{gap:1rem}
  .door-hero{gap:.75rem;padding:1.25rem}
  .door-hero .door-title{max-width:16ch;font-size:clamp(2.35rem,10vw,2.85rem);line-height:1.02}
  .door-hero .door-lede{font-size:1.05rem;line-height:1.45}
  .door-entry{gap:.5rem;padding:1rem 1.25rem}
  .door-entry h2{font-size:1.65rem}
}

/* The county colophon is compact and typographic: no tiles, links or unsupported claims. */
.door-counties{
  display:flex;
  align-items:center;
  /* The names follow their label rather than flying to the far edge (Design D1: 152px apart at 819px wide). */
  justify-content:flex-start;
  flex-wrap:wrap;
  gap:.5rem 2rem;
  padding:1rem 1.25rem;
  border:0;
  border-block:1px solid color-mix(in srgb,var(--door-gilt) 42%,var(--line));
  border-radius:0;
  background:var(--card);
  box-shadow:none;
}
.door-counties h2{
  flex:0 0 auto;
  color:var(--door-gilt);
  font-family:var(--font-display);
  font-size:1rem;
  font-variant-caps:all-small-caps;
  letter-spacing:.1em;
}
.door-counties ul{display:flex;flex-wrap:wrap;justify-content:flex-start;margin:0;padding:0;list-style:none}
.door-counties li{padding:.15rem 1rem;color:var(--fg);font-family:var(--font-display);font-size:1.1rem;line-height:1.4}
.door-counties li+li{border-left:1px solid color-mix(in srgb,var(--door-gilt) 35%,var(--line))}

/* Newcomers get the filled action; returning members get an equally visible quiet action. */
.door-entry{display:flex;flex-direction:column;gap:.75rem;padding:clamp(1rem,3vw,1.5rem)}
.door-entry h2{font-family:var(--font-display);font-size:1.8rem;line-height:1.1;color:var(--fg)}
.door-entry p{max-width:32ch;color:var(--muted);font-size:.95rem;line-height:1.5}
.door-entry-actions{display:grid;gap:.625rem;margin-top:.25rem}
.door-entry button[aria-expanded="true"]{border-color:var(--door-gilt)}
@media (max-width:639px){
  .door-columns{gap:1rem;padding-block:1rem}
  .door-main{gap:1rem}
  .door-hero{gap:.75rem;padding:1.25rem}
  .door-hero .door-lede{font-size:1rem;line-height:1.5}
  .door-entry{gap:.5rem;padding:1rem}
  .door-entry-actions{margin-top:0}
  .door-counties{align-items:flex-start;flex-direction:column;gap:.25rem;padding:.625rem 1rem}
  .door-counties h2{font-size:.9rem;line-height:1.2}
  .door-counties ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
  .door-counties li{padding:.1rem 0;font-size:1rem;line-height:1.25}
  .door-counties li+li{border-left:0}
  .door-counties li:nth-child(even){padding-left:1rem;border-left:1px solid color-mix(in srgb,var(--door-gilt) 35%,var(--line))}
}
/* Design H1 (Nov 27): with large text in a narrow strip, "Hillsborough" crossed the gilt divider toward "Polk".
   Below 15em of strip (em follows the text size) the counties stack in one column with no divider. */
.door-counties{container-type:inline-size}
@container (max-width:15em){
  .door-counties ul{grid-template-columns:minmax(0,1fr)}
  .door-counties li:nth-child(even){padding-left:0;border-left:0}
}

/* The other cards: one gilt hairline on solid card. Their ghosted engravings (::after) stay, beside the words. */
.door-week,.door-rooms,.door-side .card,.door-side #sign-in{
  border-color:color-mix(in srgb,var(--door-gilt) 38%,var(--line));
  background:var(--card);
  box-shadow:none;
}
.door-week::before,.door-rooms::before,.door-side .card::before,.door-side #sign-in::before{content:none}

/* Section heads: gilt small caps at a real size, then the diamond and double hairline (book-craft.css). */
.door-heading{font-size:1.3rem;letter-spacing:.16em}
.door-heading::after{
  height:7px;
  background:var(--orn-ink);
  -webkit-mask:var(--orn-rule);
  mask:var(--orn-rule);
}

/* Room names: a typographic list in small caps, each over one hairline, not a grid of bordered tiles. */
.door-roomlist{column-gap:1.25rem;row-gap:0}
.door-room{
  justify-content:flex-start;
  text-align:start;
  min-height:44px;
  padding-inline:0;
  border:0;
  border-block-end:1px solid color-mix(in srgb,var(--door-gilt) 28%,var(--line));
  border-radius:0;
  background:none;
  box-shadow:none;
}

/* The page is a column, as signed-in pages are from 1100px (--col), so the Martin plate shows in both margins
   instead of the cards running edge to edge. */
@media (min-width:68.75em){
  .door-page{inline-size:min(100%,var(--col));margin-inline:auto}
}

/* The Door's own footer links (and About's, Privacy's, Terms', the 404's) sit on the plate: give them the same
   solid strip as the signed-in footer. Inside .page-foot the strip is the wrapper, so this stays off there. */
.legal-footer:not(.page-foot *):not(.doc-foot *),
.doc-foot{
  padding:var(--space-1,.5rem) var(--space-3);
  border-top:1px solid color-mix(in srgb,var(--gold) 55%,transparent);
  background:var(--bg);
}
/* About, Privacy and Terms: the strip is the wrapper, holding the plate credit over the links. */
.doc-foot{padding-top:var(--space-2,.75rem)}
