@font-face { font-family: Letter; font-style: normal; font-weight: 600; src: url('/letter.ttf') format('truetype'); font-display: swap }
:root { color-scheme: light; --paper:#fffbf3; --ink:#3b3031; --red:#94384b; --wine:#762a3b; --line:#ddcfc2; --muted:#715f5d; --serif:Letter,Georgia,serif; font-family:'Segoe UI',system-ui,sans-serif; color:var(--ink) }
* { box-sizing:border-box }
[hidden] { display:none !important }
body { margin:0; min-height:100svh; background-color:#f6eee6; background-image:linear-gradient(90deg,#af8e7710 1px,transparent 1px),linear-gradient(#af8e7710 1px,transparent 1px); background-size:24px 24px }
main { width:min(1050px,calc(100% - 72px)); margin:auto; padding-bottom:60px }
button,input { font:inherit; color:inherit }
button { cursor:pointer }
button:disabled { cursor:wait }
:focus-visible { outline:3px solid #874051; outline-offset:3px }
.mast { display:flex; align-items:center; justify-content:space-between; min-height:77px; border-bottom:1px solid #cbb6ac }
.brand { display:flex; align-items:center; gap:9px; font:italic 600 26px/1 var(--serif) }
.brand i { color:var(--red); font:normal 30px Georgia,serif; transform:rotate(-10deg) }
.zone { color:var(--muted); font-size:.88rem }
.intro { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:32px 5px 35px }
h1,h2,p { margin:0 }
h1 { font:600 clamp(3rem,6.6vw,5.25rem)/1.02 var(--serif); letter-spacing:-.045em }
h1 em { color:var(--red); font-family:Georgia,serif; font-weight:400; font-size:.91em }
.intro p { color:var(--muted); line-height:1.55; margin-top:10px }
.stamp { padding:6px; background:#fff8e9; border:2px dotted #b68b7b; box-shadow:1px 3px 6px #573e361e; transform:rotate(7deg); flex:none; margin-right:12px }
.stamp img { width:clamp(54px,7vw,85px); height:auto; display:block; border:1px solid #c49689 }
.workspace { display:grid; grid-template-columns:minmax(0,1.8fr) minmax(265px,1fr); align-items:start; gap:24px }
.month,.detail,.overview { background:var(--paper); border:1px solid var(--line); box-shadow:0 6px 18px #684a3e0c; border-radius:4px }
.month { position:relative }
.binding { position:absolute; left:8%; right:8%; top:-9px; display:flex; justify-content:space-between; pointer-events:none }
.binding i { width:6px; height:18px; border:1px solid #96776d; border-radius:5px; background:linear-gradient(90deg,#b38e7e,#f9edda 48%,#b39382) }
.month-bar { display:flex; align-items:baseline; justify-content:space-between; padding:20px 25px 16px; background:var(--wine); border-radius:3px 3px 0 0; color:#fff9ed }
.month-bar h2,.detail h2,.overview h2 { font:600 2.45rem/1.1 var(--serif); letter-spacing:-.03em }
.month-bar>span { font:1.25rem Georgia,serif; color:#f2d8ca }
.week,.grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)) }
.week { padding:12px 0 10px; text-align:center; font-size:.85rem; font-weight:600; color:var(--muted); border-bottom:1px solid var(--line) }
.week span:nth-last-child(-n+2),.day.weekend { color:var(--red) }
.day,.blank { min-height:67px; border:0; border-right:1px solid #e6d9cd; border-bottom:1px solid #e6d9cd; background:transparent }
.grid>:nth-child(7n) { border-right:0 }
.day { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; padding:5px 1px; font:1.35rem/1.1 Georgia,serif; position:relative }
.day::after { content:''; width:15px; height:3px; border-radius:2px; background:transparent }
.day.free { background:#f7e7e1 }
.day.free::after,.legend i { background:var(--red) }
.day:hover { background:#f3e5d9 }
.day[aria-pressed=true] { background:var(--red); color:white; box-shadow:inset 0 0 0 2px var(--red) }
.day[aria-pressed=true].free::after { background:#fff2d6 }
.day:focus-visible { z-index:1; outline-offset:-4px; outline-color:currentColor }
.legend { display:flex; gap:9px; align-items:center; color:var(--muted); margin:13px 20px; font-size:.85rem }
.legend i { width:16px; height:3px; border-radius:2px }
.detail { padding:25px; border-top:4px solid #c99290; scroll-margin-top:12px }
#weekday { font-size:.87rem; font-weight:600; color:var(--red); margin-bottom:5px; text-transform:capitalize }
.detail h2 { font-size:clamp(2rem,4vw,2.7rem) }
#empty { margin-top:15px; color:var(--muted); font-size:1rem; line-height:1.5 }
#periods { list-style:none; padding:0; margin:15px 0 0 }
#periods:empty { margin:0 }
#periods li { padding:8px 0; border-bottom:1px solid var(--line); display:flex; justify-content:space-between; align-items:center; gap:5px; font-variant-numeric:tabular-nums }
.tools { display:flex; flex:none; gap:2px }
.tools button { width:35px; min-height:36px; border:0; border-radius:4px; color:var(--red); background:transparent; font:22px/1 Georgia,serif }
.tools button:hover,.text-button:hover { background:#f7e6dc }
form { padding-top:17px; margin-top:15px; border-top:1px dashed #cdb3a7 }
.inputs { display:grid; grid-template-columns:1fr 1fr; gap:12px }
label { min-width:0; font-size:.9rem; color:var(--muted) }
input { width:100%; min-width:0; height:44px; margin-top:5px; padding:7px; border:1px solid #bca69c; background:#fffdf8; border-radius:6px; font-size:1rem }
.primary { width:100%; border:0; border-radius:6px; min-height:45px; background:var(--red); color:white; font-size:1rem; font-weight:600; margin-top:15px }
.primary:hover { background:var(--wine) }
.text-button { padding:8px 4px; border:0; background:transparent; color:var(--red); text-decoration:underline; text-underline-offset:3px }
#booking-window { display:block; margin-bottom:12px; color:var(--wine) }
#meeting-list { list-style:none; margin:10px 0 0; padding:0 }
#meeting-list li { padding:9px 0; border-top:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap }
#status:not(:empty) { margin-top:15px; color:var(--wine); font-size:.94rem; line-height:1.4 }
.overview { margin-top:24px; padding:20px 25px }
.overview h2 { font-size:1.9rem; margin-bottom:10px }
#agenda button { width:100%; border:0; border-top:1px solid var(--line); text-align:left; background:transparent; display:grid; grid-template-columns:minmax(115px,170px) 1fr; gap:14px; padding:13px 0; align-items:baseline }
#agenda button:hover { color:var(--red) }
#agenda strong { font-weight:600 }
#agenda span { font-variant-numeric:tabular-nums; line-height:1.5 }
@media(max-width:760px) {
  main { width:min(610px,calc(100% - 32px)); padding-bottom:30px }
  .mast { min-height:60px }
  .intro { padding:23px 0 25px }
  .intro p { margin-top:8px }
  .workspace { grid-template-columns:1fr; gap:17px }
  .day,.blank { min-height:48px }
  .month-bar { padding:16px 18px 12px }
  .month-bar h2 { font-size:2rem }
  .detail,.overview { padding:18px }
  .stamp { margin-right:3px }
  .overview { margin-top:17px }
}
@media(max-width:440px) {
  h1 { font-size:2.55rem }
  .stamp img { width:42px }
  .intro { gap:8px }
  .zone { font-size:.82rem }
  .intro p { font-size:.94rem }
  #agenda button { grid-template-columns:1fr; gap:3px }
}
