/* Public page pieces: the status line, the sign-up, the footer, and door faces that open by date. */
.wrap.calview { padding-bottom: 40px; }
.door.pub .big { display: none; font: 700 clamp(30px, 4vw, 48px)/1 var(--display); color: var(--quiet); }
.door.pub.shut { background: transparent; border-style: dashed; cursor: default; }
.door.pub.shut svg, .door.pub.shut .t, .door.pub.shut .n, .door.pub.shut a.hit { display: none; }
.door.pub.shut .big { display: block; }
.door.later .big { display: block; }
.calview .dsign { margin-top: 56px; }
.dsign { margin-top: 48px; }
.form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.form input[type=email] { flex: 1 1 240px; min-height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid oklch(1 0 0 / 22%); background: oklch(1 0 0 / 8%); color: inherit; font: inherit; }
.form input::placeholder { color: oklch(0.8 0.035 218); }
.form button { min-height: 48px; padding: 0 20px; border: 0; border-radius: 10px; background: var(--blue); color: oklch(0.13 0.05 215); font: 700 16px var(--text); cursor: pointer; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dsign .fine { font-size: 13.5px; margin-top: 14px; opacity: .8; }
.dsign .fine a { color: inherit; }
.dsign .result { min-height: 1.4em; font-weight: 600; margin-top: 8px; opacity: 1; }
.foot { max-width: 1180px; margin: 0 auto; padding: 28px 20px 48px; font: 500 12.5px/1.4 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--quiet); }
.dshut .dtitle { color: var(--quiet); font-size: clamp(80px, 14vw, 180px); }
.droom.dshut { grid-template-columns: minmax(0, 1fr); }
:focus-visible { outline: 3px solid var(--blue-ink); outline-offset: 3px; border-radius: 6px; }
.nexttag { position: absolute; inset: auto 7px 7px; font: 500 11.5px/1.2 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--blue-ink); }
.door.isnext { border-color: color-mix(in oklab, var(--blue) 45%, var(--rule)); }
.door .hit:focus-visible { outline-offset: -4px; }
.door button.hit { width: 100%; border: 0; padding: 0; background: transparent; cursor: pointer; }
.door .soon {
  inset: 0; display: grid; place-items: center; padding: 6px; pointer-events: none;
  background: var(--paper); color: var(--blue-ink); font-size: 10.5px; text-align: center;
}
.door.saysoon .nexttag { visibility: hidden; }
.door.pub:not(.shut) { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.door.pub:not(.shut) svg { height: 100%; justify-self: center; }
.door.pub .t { white-space: normal; text-overflow: clip; overflow-wrap: anywhere; text-wrap: balance; }

/* the invitation: its own line, in Habu blue */
.lede { margin-bottom: 14px; }
.reveal { margin: 0 0 40px; font: 700 clamp(19px, 2.3vw, 24px)/1.3 var(--display); color: var(--blue-ink); letter-spacing: -0.005em; }

/* the room is the hero: a calmer headline above it */
.calview h1 { font-size: clamp(36px, 4.8vw, 62px); margin: 8px 0 12px; }
.calview .lede { font-size: clamp(16px, 1.5vw, 18px); max-width: 52ch; }
.calview .reveal { margin-bottom: 26px; }
.calview .room { margin-left: 0; }

/* wide screens: the words on the left, the room on the right, the whole calendar in view */
@media (min-width: 1000px) {
  .calendar .wrap.calview, .doorpage.mode-cal .wrap.calview { display: grid; grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.5fr); column-gap: clamp(32px, 4vw, 64px); align-items: start; max-width: 1360px; padding-top: 22px; }
  .calview > .kick, .calview > h1, .calview > .lede, .calview > .reveal { grid-column: 1; }
  .calview > .kick { margin-top: clamp(30px, 6vh, 70px); }
  .calview > .room { grid-column: 2; grid-row: 1 / span 6; justify-self: end; width: 100%; }
  .calview > .dsign { grid-column: 1 / -1; }
  .calview h1 { font-size: clamp(38px, 4vw, 60px); }
}

/* wide screens: the sign-up sits in the words column, under the invitation */
@media (min-width: 1000px) {
  .calview > .dsign { grid-column: 1; margin-top: 8px; padding: 26px 24px; border-radius: 16px; }
  .calview > .dsign h2 { font-size: clamp(24px, 2.2vw, 30px); }
  .calview > .dsign > p:first-of-type { font-size: 15px; }
  .calview > .dsign .form { flex-direction: column; }
  .calview > .dsign .form input[type=email], .calview > .dsign .form button { flex: 0 0 auto; width: 100%; }
}

/* the sign-up, quieter: no block of colour, one line to type in, a small arrow to send */
.dsign, .calview > .dsign { background: transparent; color: var(--ink); border-radius: 0; padding: 18px 0 0; border-top: 1px solid var(--rule); max-width: 420px; }
.dsign h2, .calview > .dsign h2 { font: 600 15px/1.3 var(--text); letter-spacing: 0; margin: 0 0 2px; }
.dsign > p:first-of-type, .calview > .dsign > p:first-of-type { font-size: 13.5px; color: var(--quiet); margin: 0; opacity: 1; }
.dsign .form, .calview > .dsign .form { flex-direction: row; flex-wrap: nowrap; gap: 0; margin-top: 12px; border-bottom: 1.5px solid var(--ink); }
.dsign .form input[type=email], .calview > .dsign .form input[type=email] { flex: 1 1 auto; width: auto; min-width: 0; min-height: 44px; padding: 0 2px; border: 0; border-radius: 0; background: transparent; color: var(--ink); font-size: 16px; }
.dsign .form input::placeholder { color: var(--quiet); }
.dsign .form:focus-within { border-bottom-color: var(--blue-ink); }
.dsign .form button, .calview > .dsign .form button { flex: 0 0 auto; width: auto; min-height: 44px; padding: 0 4px 0 12px; background: transparent; color: var(--ink); font: 600 14px var(--text); border-radius: 0; }
.dsign .form button:hover { color: var(--blue-ink); }
.dsign .fine, .calview > .dsign .fine { font-size: 12px; color: var(--quiet); opacity: 1; margin-top: 10px; }
.dsign .result { font-size: 13.5px; color: var(--blue-ink); }
.doorview .dsign { margin-top: 48px; }

@media (min-width: 1000px) { .calendar .foot { max-width: 1360px; } }

/* wide screens: the sign-up's bottom line sits level with the bottom of the room */
@media (min-width: 1000px) {
  .calendar .wrap.calview, .doorpage.mode-cal .wrap.calview { grid-template-rows: auto auto auto auto 1fr auto; }
  .calview > .room { grid-row: 1 / 7; }
  .calview > .dsign { grid-row: 6; align-self: end; margin-top: 0; }
}
.dsign .result { min-height: 0; margin: 0; }
.dsign .result:not(:empty) { margin-top: 8px; }
.calview > .dsign .fine { margin-bottom: 0; }

/* the footer line sits at the very bottom of the screen */
body.calendar, body.doorpage { min-height: 100svh; display: flex; flex-direction: column; }
body.calendar > .wrap, body.doorpage > .wrap, body.doorpage > .doorview { width: 100%; }
.foot { margin-top: auto; width: 100%; padding-top: 18px; padding-bottom: 18px; }

/* door 1, the letter: ink on paper, a lot of air, one orange dot */
.droom.letter { display: block; min-height: 0; padding: clamp(64px, 9vw, 128px) clamp(28px, 8vw, 132px) clamp(72px, 9vw, 128px); }
.letter .lmark { width: clamp(110px, 12vw, 150px); margin: 0 0 clamp(36px, 5vw, 56px); }
.letter .lmark svg { width: 100%; height: auto; display: block; }
.letter .kicker2 { margin-bottom: 18px; }
.ltitle { font: 700 clamp(46px, 7.2vw, 104px)/0.94 var(--display); letter-spacing: -0.032em; margin: 0 0 clamp(48px, 7vw, 88px); max-width: 11ch; color: var(--ink); }
.lbody { max-width: 35em; margin-left: clamp(0px, 16vw, 260px); }
.lbody p { font: 400 clamp(18px, 1.5vw, 20.5px)/1.75 var(--text); margin: 0 0 1.25em; color: var(--ink); }
.lbody p:first-child { font-size: clamp(21px, 1.9vw, 25px); line-height: 1.5; font-weight: 600; letter-spacing: -0.005em; }
.lrule { border: 0; height: 1.5px; width: 56px; background: var(--ink); margin: 2.8em 0 2.6em; opacity: .85; }
.lpull { font: 700 clamp(36px, 4.8vw, 64px)/1.02 var(--display) !important; letter-spacing: -0.028em; margin: 1.1em 0 .55em !important; }
.lpull .dot { color: var(--orange); }
.lsign { font: 500 12.5px/1.4 var(--mono) !important; letter-spacing: .08em; text-transform: uppercase; color: var(--quiet) !important; margin-top: 3.2em !important; padding-top: 18px; border-top: 1px solid var(--rule); display: inline-block; }
.lbody > * { animation: lrise .9s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 80ms + .3s); }
@keyframes lrise { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .lbody > * { animation: none; } }
@media (max-width: 760px) { .lbody { margin-left: 0; } .droom.letter { padding: 56px 24px 64px; } }

[hidden] { display: none !important; }

.lbody .term { font: 500 .86em var(--mono); font-style: normal; letter-spacing: .01em; color: var(--ink); background: color-mix(in oklab, var(--blue) 10%, transparent); padding: .05em .3em; border-radius: 3px; }
.lsign { color: var(--ink) !important; }

/* the elegance pass: two definitions set as a pair, the turn on its own line */
.lbody .ldef { display: grid; grid-template-columns: minmax(0, 12.5em) minmax(0, 1fr); gap: .2em 1.4em; margin: 0 0 .9em; padding: .9em 0 0; border-top: 1px solid var(--rule); }
.lbody .ldef + .ldef { margin-bottom: 1.6em; }
.lbody .ldef .term { align-self: start; justify-self: start; margin-top: .22em; }
.lbody .lturn { font: 700 clamp(24px, 2.4vw, 30px)/1.2 var(--display) !important; letter-spacing: -0.015em; margin: 0 0 .6em !important; }
.lbody p { text-wrap: pretty; }
.ltitle { text-wrap: balance; }
@media (max-width: 760px) { .lbody .ldef { grid-template-columns: minmax(0, 1fr); } }

.lbody .ldef { grid-template-columns: minmax(0, 10.6em) minmax(0, 1fr); gap: .2em 1.1em; }

/* keywords lit like an announcement: body text a shade softer, the key phrases in full ink */
.lbody p { color: color-mix(in oklab, var(--ink) 74%, var(--paper)); }
.lbody p:first-child, .lbody .lpull, .lbody .lturn { color: var(--ink); }
.lbody strong { color: var(--ink); font-weight: 700; }

.dtop { align-items: center; margin-bottom: 12px; }
.dtop .home { display: inline-flex; align-items: center; flex: none; min-height: 44px; }
.dtop > span { text-align: right; }
.dnav .sharelinks { display: flex; justify-content: center; flex-wrap: wrap; }
.dnav a, .dnav button { display: inline-flex; align-items: center; min-height: 44px; padding-block: 0; }
.dnav :is(a, button):focus-visible { outline: 3px solid var(--blue-ink); outline-offset: 1px; }
@media (max-width: 520px) {
  .dnav { flex-wrap: wrap; gap: 4px 10px; }
  .dnav .sharelinks { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  body.opening #intro { display: none; }
  .doorpage.mode-cal .calview { visibility: hidden; }
  .door.rattle { animation: none; }
  .door .soon { transition: none; }
}

/* the next-day label wraps on the narrowest phones */
.nexttag { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 350px) { .nexttag { font-size: 9.5px; letter-spacing: .02em; inset: auto 4px 5px; } }

/* the contact line that stands in for the sign-up form */
.dsign .mail { margin: 14px 0 0; }
.dsign .mail a { font: 700 clamp(22px, 2.4vw, 28px)/1.2 var(--display); letter-spacing: -0.01em; color: var(--ink); text-decoration: none; border-bottom: 1.5px solid var(--ink); padding-bottom: 3px; }
.dsign .mail a:hover { color: var(--blue-ink); border-color: var(--blue-ink); }

/* a day that shows something: the picture runs the full width, the words sit beneath it */
.droom.show { grid-template-columns: minmax(0, 1fr); gap: 0; padding: clamp(40px, 6vw, 84px) clamp(20px, 6vw, 96px) clamp(48px, 6vw, 84px); min-height: 0; }
.droom.show .dart { max-width: 780px; width: 100%; margin: 0 auto clamp(20px, 3vw, 40px); }
.droom.show .dtext { max-width: 940px; width: 100%; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); column-gap: clamp(24px, 5vw, 72px); }
.droom.show .dtext .kicker2, .droom.show .dtext .dtitle { grid-column: 1; } .droom.show .dtext .dtitle { grid-row: 2 / span 6; margin-top: 0; }
.droom.show .dtext p:not(.kicker2) { grid-column: 2; max-width: none; }
@media (max-width: 760px) { .droom.show .dtext { display: block; } }
