/* ==========================================================
   The Dunning House
   Register: TYPEWRITER. One family (Courier Prime), 400/700
   plus one italic. Six sizes. Five colours. Two ink colours.
   Zero radius everywhere.
   ========================================================== */

@font-face{font-family:'Courier Prime';font-style:normal;font-weight:400;font-display:swap;src:url(font/cp-400.woff2) format('woff2');}
@font-face{font-family:'Courier Prime';font-style:normal;font-weight:700;font-display:swap;src:url(font/cp-700.woff2) format('woff2');}
@font-face{font-family:'Courier Prime';font-style:italic;font-weight:400;font-display:swap;src:url(font/cp-400i.woff2) format('woff2');}

:root{
  --paper:#F4F1E9;
  --panel:#E7E2D4;
  --ink:#241F19;
  --ink2:#5C5348;
  --accent:#0F5D5A;

  --s1:0.8125rem;  /* 13 */
  --s2:0.9375rem;  /* 15 */
  --s3:1.0625rem;  /* 17 */
  --s4:1.3125rem;  /* 21 */
  --s5:1.875rem;   /* 30 */
  --s6:3.375rem;   /* 54 */

  --fam:'Courier Prime', ui-monospace, 'Courier New', monospace;
  --gut:clamp(20px, 4vw, 40px);
}

*,*::before,*::after{box-sizing:border-box;}
html{-webkit-text-size-adjust:100%;}
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--fam);
  font-size:var(--s3);
  line-height:1.72;
  font-weight:400;
}
img{display:block;max-width:100%;height:auto;}
h1,h2,h3,p,ul,ol,figure,blockquote{margin:0;}
ul,ol{padding:0;list-style:none;}
a{color:inherit;}

:where(a,button,[tabindex]):focus-visible{
  outline:3px solid var(--accent);
  outline-offset:3px;
}

.wrap{max-width:1080px;margin:0 auto;padding:0 var(--gut);}

/* ---------- skip link ---------- */
.skip{
  position:absolute;left:-9999px;top:0;z-index:60;
  background:var(--paper);color:var(--ink);
  border:2px solid var(--ink);
  padding:14px 20px;font-size:var(--s2);text-decoration:underline;
}
.skip:focus{left:0;}
.skip:focus-visible{outline:3px solid var(--accent);outline-offset:2px;}

/* ---------- mockup banner ---------- */
.mockup{
  background:var(--ink);
  color:var(--paper);
  font-size:var(--s1);
  letter-spacing:.14em;
  text-transform:uppercase;
  text-align:center;
  padding:9px 16px;
  line-height:1.4;
}

/* ---------- header ---------- */
.head{
  border-bottom:1px solid var(--ink);
  background:var(--paper);
}
.head-in{
  max-width:1080px;margin:0 auto;padding:18px var(--gut);
  display:flex;flex-wrap:wrap;align-items:baseline;gap:10px 28px;
}
.wordmark{display:flex;flex-direction:column;line-height:1.35;margin-right:auto;}
.wordmark-a{font-weight:700;font-size:var(--s4);letter-spacing:.01em;}
.wordmark-b{font-size:var(--s1);color:var(--ink2);letter-spacing:.06em;}
.head-nav{display:flex;flex-wrap:wrap;gap:0 22px;font-size:var(--s2);}
.head-nav a{text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px;padding:6px 0;}
.head-nav a:hover{text-decoration-thickness:2px;}
.head-call .tel{
  font-weight:700;font-size:var(--s4);color:var(--accent);
  text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:2px;
  white-space:nowrap;display:inline-block;padding:4px 0;
}

/* ---------- opener ---------- */
.open{
  max-width:1080px;margin:0 auto;padding:clamp(26px,3.2vw,40px) var(--gut) clamp(26px,3.4vw,42px);
  display:grid;gap:clamp(28px,4vw,46px);
  grid-template-columns:1fr;
}
@media (min-width:900px){
  .open{grid-template-columns:1fr 1.02fr;align-items:stretch;}
  .open-fig{display:flex;flex-direction:column;}
  .open-fig img{flex:1 1 auto;aspect-ratio:auto;min-height:0;}
}
.open h1{
  font-weight:700;
  font-size:clamp(1.95rem,5.1vw,var(--s6));
  line-height:1.1;
  letter-spacing:-.02em;
  margin-bottom:22px;
}
.open-words p{margin-bottom:12px;max-width:46ch;}
.open-lead{font-size:var(--s4);line-height:1.55;}
.open-note{font-size:var(--s2);color:var(--ink2);margin-bottom:0 !important;}
.open-act{margin-top:22px;}
.open-fig figcaption,
.attic-fig figcaption{
  font-size:var(--s1);color:var(--ink2);margin-top:12px;line-height:1.6;
}
.open-fig img{width:100%;aspect-ratio:3/2;object-fit:cover;}

/* ---------- button ---------- */
.btn{
  display:inline-block;
  background:var(--accent);
  color:var(--paper);
  font-weight:700;
  font-size:var(--s4);
  letter-spacing:.02em;
  text-decoration:none;
  padding:13px 22px;
  min-height:48px;
  border:0;
}
.btn:hover{background:#0A4744;}
.btn:focus-visible{outline:3px solid var(--ink);outline-offset:3px;}

/* ---------- dotted leader (the motif) ---------- */
.lead-dots{
  flex:1 1 auto;
  min-width:18px;
  align-self:center;
  border-bottom:2px dotted var(--ink2);
  margin:0 12px;
  transform:translateY(-3px);
  opacity:.75;
}

/* ---------- section headings ---------- */
h2{
  font-weight:700;
  font-size:clamp(1.5rem,3.4vw,var(--s5));
  line-height:1.24;
  letter-spacing:-.01em;
}
h3{font-weight:700;font-size:var(--s4);line-height:1.35;}

/* ---------- rooms ---------- */
.rooms{padding-top:clamp(28px,3.6vw,44px);border-top:1px solid var(--ink);}
.rooms-intro{
  max-width:66ch;margin-top:12px;color:var(--ink2);font-size:var(--s2);
}
.band{padding:clamp(22px,2.6vw,32px) 0 clamp(6px,1vw,10px);}
.band-attic{background:var(--panel);padding-bottom:clamp(30px,3.8vw,48px);margin-top:clamp(20px,3vw,32px);}
.band-head{
  border-top:3px solid var(--ink);
  padding-top:11px;margin-bottom:clamp(14px,1.6vw,20px);
}
.band-count{
  font-weight:700;
  font-size:clamp(1.95rem,5.6vw,var(--s6));
  line-height:1.02;
  letter-spacing:-.03em;
  text-transform:uppercase;
}
.band-label{font-size:var(--s2);color:var(--ink2);margin-top:6px;max-width:60ch;}

.room{
  display:grid;
  gap:10px 36px;
  grid-template-columns:1fr;
  padding:13px 0;
  border-top:1px dotted var(--ink2);
}
.room:first-of-type{border-top:1px solid var(--ink2);}
@media (min-width:820px){
  .room{grid-template-columns:216px minmax(0,1fr);gap:0 36px;align-items:start;}
}
.room-id{display:flex;flex-direction:column;gap:1px;}
.room-no{font-weight:700;font-size:var(--s5);line-height:1.05;}
.room-name{font-weight:700;font-size:var(--s3);}
.room-bed{font-size:var(--s2);color:var(--ink2);margin-bottom:5px;}
.room-catch{max-width:64ch;margin-bottom:4px;font-size:var(--s2);line-height:1.55;}
.room-catch strong{font-weight:700;}
.room-plus{max-width:64ch;font-style:italic;color:var(--ink2);font-size:var(--s2);line-height:1.55;}
.room-rate{display:flex;align-items:baseline;flex-wrap:wrap;margin-top:6px;}
.rate-fig{font-weight:700;font-size:var(--s4);}
.rate-note{font-size:var(--s1);color:var(--ink2);margin-left:8px;}
.room-name{margin-top:2px;}

/* attic band */
.attic-grid{display:grid;gap:clamp(22px,3vw,38px);grid-template-columns:1fr;}
@media (min-width:960px){
  .attic-grid{grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);align-items:start;}
}
.attic-fig img{width:100%;aspect-ratio:3/4;max-height:520px;object-fit:cover;}
.band-attic .room:first-of-type{border-top:1px solid var(--ink2);}

/* ---------- full-bleed figures ---------- */
.bleed{margin:clamp(20px,2.4vw,30px) 0 0;}
.bleed img{
  width:100%;
  height:clamp(220px,32vw,420px);
  object-fit:cover;
}
.bleed figcaption{
  background:var(--ink);
  color:var(--paper);
  padding:15px var(--gut);
}
.bleed figcaption > span{display:block;max-width:1080px;margin:0 auto;}
.bleed-cap-a{font-weight:700;font-size:var(--s4);line-height:1.35;}
.bleed-cap-b{font-size:var(--s2);line-height:1.65;margin:8px 0 0 !important;max-width:74ch !important;}
.bleed-night{margin:0;}
.bleed-night img{height:clamp(230px,33vw,440px);}

/* ---------- in every room ---------- */
.every{padding:clamp(28px,3.4vw,44px) 0;background:var(--panel);margin-top:clamp(26px,3.4vw,42px);}
.every-intro{margin-top:14px;color:var(--ink2);font-size:var(--s2);}
.every-fig{margin-top:clamp(18px,2.2vw,28px);}
.every-fig img{width:100%;aspect-ratio:21/9;object-fit:cover;}
.every-fig figcaption{font-size:var(--s1);color:var(--ink2);margin-top:10px;line-height:1.55;max-width:78ch;}
.every-cols{
  display:grid;gap:clamp(20px,2.6vw,40px);grid-template-columns:1fr;
  margin-top:clamp(20px,2.4vw,30px);
}
@media (min-width:820px){.every-cols{grid-template-columns:1fr 1fr;}}
.every-col h3{border-bottom:3px solid var(--ink);padding-bottom:10px;margin-bottom:6px;}
.every-col li{
  padding:8px 0 8px 26px;
  border-bottom:1px dotted var(--ink2);
  font-size:var(--s2);
  line-height:1.65;
  position:relative;
}
.every-col li::before{
  content:"+";
  position:absolute;left:0;top:8px;
  font-weight:700;color:var(--accent);
}
.every-col:last-child li::before{content:"\2013";color:var(--ink2);}

/* ---------- late ---------- */
.late{margin-top:clamp(22px,2.6vw,34px);}
.late-in{padding:clamp(24px,2.8vw,38px) var(--gut) clamp(4px,0.8vw,10px);}
.late-lead{font-size:var(--s4);line-height:1.4;margin:12px 0 12px !important;max-width:48ch;}
.late-in p{max-width:72ch;margin-bottom:11px;font-size:var(--s2);line-height:1.6;}

/* ---------- breakfast ---------- */
.bfast{padding:clamp(26px,3.2vw,42px) 0 0;}
.bfast-grid{display:grid;gap:clamp(26px,4vw,50px);grid-template-columns:1fr;align-items:start;}
@media (min-width:900px){.bfast-grid{grid-template-columns:minmax(0,1fr) minmax(0,1.08fr);}}
.bfast-fig img{width:100%;aspect-ratio:4/3;object-fit:cover;}
.bfast-words p{max-width:58ch;margin-top:11px;font-size:var(--s2);line-height:1.6;}

/* ---------- who ---------- */
.who{padding:clamp(26px,3.2vw,42px) 0 0;}
.who-intro{margin-top:14px;color:var(--ink2);font-size:var(--s2);}
.who-list{margin-top:clamp(16px,1.8vw,22px);border-top:3px solid var(--ink);}
@media (min-width:860px){
  .who-list{display:grid;grid-template-columns:1fr 1fr;column-gap:clamp(28px,3.4vw,52px);}
  .who-list li:nth-child(-n+2){border-top:0;}
}
.who-list li{
  display:grid;grid-template-columns:auto minmax(0,1fr);gap:0 22px;
  padding:12px 0;border-bottom:1px dotted var(--ink2);
}
.who-n{font-weight:700;font-size:var(--s4);line-height:1.6;color:var(--ink2);}
.who-t{max-width:70ch;font-size:var(--s2);line-height:1.6;}

/* ---------- holding a room ---------- */
.hold{padding:clamp(28px,3.4vw,44px) 0 clamp(30px,3.6vw,46px);}
.hold-in{max-width:820px;margin-right:auto;}
.hold-lead{font-size:var(--s4);line-height:1.45;margin-top:14px;max-width:46ch;}
.hold-list{margin-top:clamp(18px,2.2vw,26px);border-top:3px solid var(--ink);}
.hold-list li{
  display:flex;align-items:baseline;flex-wrap:wrap;
  padding:9px 0;border-bottom:1px dotted var(--ink2);
  font-size:var(--s2);
}
.hold-k{font-weight:700;white-space:nowrap;}
.hold-v{text-align:right;}
.hold-v .tel{
  display:inline-block;padding:4px 0;
  color:var(--ink);font-weight:700;font-size:var(--s3);
  text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:2px;
}
.hold-act{margin-top:clamp(22px,2.6vw,32px);}
.hold-close{margin-top:18px;max-width:58ch;font-size:var(--s2);color:var(--ink2);}

@media (max-width:640px){
  .hold-list li{display:block;}
  .hold-list .lead-dots{display:none;}
  .hold-k{display:block;}
  .hold-v{display:block;text-align:left;margin-top:2px;}
}


/* ---------- footer ---------- */
.foot{background:var(--ink);color:var(--paper);padding:clamp(28px,3.2vw,42px) 0 clamp(24px,2.8vw,36px);}
.foot a{color:var(--paper);text-decoration:underline;text-underline-offset:4px;display:inline-block;padding:3px 0;}
.foot a:focus-visible{outline:3px solid var(--paper);outline-offset:3px;}
.foot-grid{display:grid;gap:clamp(24px,3vw,44px);grid-template-columns:1fr;}
@media (min-width:760px){.foot-grid{grid-template-columns:1.3fr 1fr 1fr;}}
.foot-name{font-weight:700;font-size:var(--s4);}
.foot-addr{font-size:var(--s2);margin-top:8px;line-height:1.6;}
.foot-lab{font-size:var(--s1);letter-spacing:.14em;text-transform:uppercase;margin-bottom:6px;}
.foot-lab-2{margin-top:18px;}
.foot-col p{font-size:var(--s2);}
.foot-hours{line-height:1.8;}
.foot-disc{
  margin-top:clamp(20px,2.4vw,30px);
  padding-top:15px;
  border-top:1px solid #4A423A;
  font-size:var(--s1);
  line-height:1.75;
  max-width:88ch;
}
.foot-cred{margin-top:16px;font-size:var(--s1);line-height:1.7;max-width:70ch;}

/* ---------- motion ----------
   Scroll-driven and CSS-only on purpose. A JS reveal that sets opacity:0
   and waits for an observer can strand content invisible; this cannot,
   because a browser without view() timelines simply never hides anything. */
@keyframes riseIn{
  from{opacity:0;transform:translateY(24px);}
  to{opacity:1;transform:none;}
}
@supports (animation-timeline: view()){
  @media (prefers-reduced-motion:no-preference){
    .open-words,.open-fig,.band-head,.room,.bleed,.every-fig,.every-col,
    .late-in,.bfast-fig,.bfast-words,.who-list,.hold-in,.attic-fig{
      animation:riseIn linear both;
      animation-timeline:view();
      animation-range:entry 0% entry 60%;
    }
  }
}
html{scroll-behavior:smooth;}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto;}
}
