/* quiet doors · unsent, friend, untangle, almanac
   mobile first. cream ground. evening panels. 48px holds. */

body.quiet-door{
  --door-ink:#2A3224;
  --door-mist:#57646F;
  --door-line:rgba(42,50,36,.14);
  --door-paper:rgba(255,255,255,.62);
  --door-hold:#12160F;
  --door-dawn:#EDE7D6;
}

.door-stage{
  width:min(680px,100%);
  margin:0 auto;
  padding:4px 16px calc(72px + env(safe-area-inset-bottom,0px));
}
.door-lead{
  margin:0 0 18px;
  color:var(--door-mist);
  font-size:15px;
  line-height:1.7;
  max-width:42ch;
}

.door-panel{
  padding:18px 16px 20px;
  border:0.5px solid var(--door-line);
  border-radius:20px;
  background:var(--door-paper);
  box-shadow:0 10px 28px rgba(18,22,15,.04);
}
.door-panel label{
  display:block;
  margin:0 0 8px;
  color:var(--door-mist);
  font-size:12px;
  letter-spacing:.04em;
}
.door-panel > p,
.door-note{
  margin:14px 0 0;
  color:var(--door-mist);
  font-size:13.5px;
  line-height:1.65;
}

.door-field{
  display:block;
  width:100%;
  min-height:42vh;
  padding:14px;
  border:0.5px solid var(--door-line);
  border-radius:14px;
  background:#fff;
  color:var(--door-ink);
  font:inherit;
  font-size:16px;
  line-height:1.65;
  resize:vertical;
}
.door-field:focus{
  outline:2px solid var(--fern,#7E9169);
  outline-offset:2px;
}
.door-field.dissolving{opacity:0;transition:opacity 1.4s ease}

.door-acts{
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
  margin-top:14px;
}
.door-acts button,
.door-shapes button,
.door-quiet{
  appearance:none;
  min-height:48px;
  padding:12px 16px;
  border:0.5px solid var(--door-line);
  border-radius:999px;
  background:#fff;
  color:var(--door-ink);
  font:inherit;
  font-size:15px;
  cursor:pointer;
}
.door-acts button:focus-visible,
.door-shapes button:focus-visible,
.door-quiet:focus-visible{
  outline:2px solid var(--fern,#7E9169);
  outline-offset:2px;
}
.door-acts button[aria-pressed="true"],
.door-shapes button[aria-pressed="true"],
.untangle-acts button[aria-pressed="true"]{
  background:var(--door-hold);
  color:var(--door-dawn);
  border-color:var(--door-hold);
}

.door-status{
  min-height:1.4em;
  margin-top:12px;
  color:var(--door-mist);
  font-size:14px;
}

.door-shapes{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin:4px 0 8px;
}
.door-cols{display:grid;gap:12px;margin-top:8px}
.door-col{
  padding:16px;
  border-radius:16px;
  background:rgba(255,255,255,.55);
  border:0.5px solid var(--door-line);
}
.door-col h2{
  margin:0 0 10px;
  font-size:15px;
  font-weight:500;
}
.door-col li{margin:8px 0;line-height:1.6}

.untangle-item{
  margin:0 0 12px;
  padding:16px;
  border-radius:18px;
  background:var(--door-paper);
  border:0.5px solid var(--door-line);
}
.untangle-item h2{
  margin:0 0 6px;
  font-size:16px;
  font-weight:500;
}
.untangle-item p{
  margin:0;
  color:var(--door-mist);
  font-size:13.5px;
  line-height:1.6;
}
.untangle-acts{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-top:12px;
}
.untangle-acts button{
  min-height:46px;
  padding:10px 12px;
  border:0.5px solid var(--door-line);
  border-radius:999px;
  background:#fff;
  color:var(--door-ink);
  font:inherit;
  font-size:14px;
  cursor:pointer;
}

.almanac-letter{
  margin:8px 0 22px;
  padding:22px 18px;
  border-radius:20px;
  background:var(--door-hold);
  color:var(--door-dawn);
  box-shadow:0 16px 40px rgba(18,22,15,.16);
}
.almanac-letter p{margin:0 0 12px;line-height:1.75}
.almanac-letter p:last-child{margin-bottom:0}
.almanac-acts{
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:stretch;
}
.almanac-acts .btn-primary,
.almanac-acts .btn-secondary,
.almanac-acts .door-quiet{width:100%}

.home-door-row{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px;
  margin-top:14px;
}
.home-door-row a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:10px 16px;
  border:0.5px solid var(--border);
  border-radius:999px;
  color:var(--stone);
  font-size:13px;
  text-decoration:none;
}
.sim-confirmation{
  margin-top:14px;
  padding:14px 16px;
  border-radius:14px;
  background:rgba(18,22,15,.06);
  color:var(--door-ink);
  font-size:14px;
  line-height:1.55;
}
.home-door-row a:hover{color:var(--ink);border-color:var(--sage)}

@media(max-width:559px){
  body.quiet-door .page-hero{padding:28px 16px 10px}
  body.quiet-door .page-hero h1{font-size:clamp(1.55rem,8vw,2.05rem)}
  body.quiet-door .page-hero-sub{margin-bottom:6px}
  .door-field{min-height:28vh}
}
@media(min-width:560px){
  .door-stage{padding-inline:24px}
  .door-panel{padding:22px}
  .door-acts{grid-template-columns:1fr 1fr}
  .untangle-acts{grid-template-columns:repeat(3,minmax(0,1fr))}
  .almanac-acts{flex-direction:row;align-items:center}
  .almanac-acts .btn-primary,
  .almanac-acts .btn-secondary,
  .almanac-acts .door-quiet{width:auto}
}
@media(min-width:760px){
  .door-stage{padding-top:8px}
  .door-cols{grid-template-columns:1fr 1fr}
  .door-shapes{grid-template-columns:repeat(4,minmax(0,1fr))}
  .almanac-letter{padding:28px 26px}
}
@media(min-width:1024px){
  .door-stage{padding-bottom:96px}
  .door-field{min-height:280px}
}

@media(prefers-reduced-motion:reduce){
  .door-field.dissolving{transition:none}
}
