@font-face {
  font-family: "DUQW Serif";
  src: url("fonts/liberation-serif-regular.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #5a111e;
  --muted: #644a4d;
  --gold: #786545;
  --paper: #f6f2ea;
  --line: #cfc2ac;
  --serif: "DUQW Serif", Georgia, serif;
  font: 100%/1.5 Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; padding: clamp(.75rem, 2.5vw, 2.5rem); }
.frame {
  width: min(100%, 75rem);
  min-height: calc(100svh - 2 * clamp(.75rem, 2.5vw, 2.5rem));
  margin: auto;
  padding: clamp(1.1rem, 4.2vw, 3.75rem);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.topbar, footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.topbar { border-bottom: 1px solid var(--line); padding-bottom: 1.15rem; }
.brand { display: inline-flex; gap: .7rem; align-items: center; }
.brand img { display: block; max-width: 100%; height: auto; }
.languages { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1rem; }
.languages a { display: inline-grid; align-items: center; min-height: 2.75rem; font-size: .88rem; }
.languages a[aria-current] { font-weight: 700; text-decoration: none; }
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr);
  gap: clamp(1.8rem, 3vw, 2.8rem) clamp(2rem, 6vw, 5.5rem);
  margin-block: clamp(2rem, 5vw, 4.5rem);
}
.intro { grid-column: 1 / -1; }
h1, h2, h3 { margin: 0; font: 400 2rem/1.1 var(--serif); }
h1 { max-width: 12ch; font-size: clamp(2.75rem, 4.5vw, 4.5rem); letter-spacing: -.025em; }
.lead { margin: .8rem 0 0; max-width: 62ch; color: var(--muted); font: 1.2rem/1.5 var(--serif); }
.direct { align-self: start; border-inline-start: 1px solid var(--line); padding: .2rem 0 .2rem clamp(1.4rem, 3vw, 2.8rem); }
.direct h2 { font-size: 1.35rem; margin: 0 0 .55rem; }
.direct a { display: table; font-size: .96rem; padding-block: .22rem; }
.form-panel { min-width: 0; border-top: 1px solid var(--line); padding-top: 1.3rem; }
.form-panel h2 { margin-bottom: 1.3rem; }
form { display: grid; gap: 1.05rem; }
.field { display: grid; gap: .38rem; }
label, legend { font-size: .96rem; font-weight: 600; }
.optional { color: var(--muted); font-size: .87rem; font-weight: normal; }
input:not([type="radio"], [type="hidden"]), textarea {
  width: 100%;
  min-width: 0;
  min-height: 2.8rem;
  padding: .63rem .75rem;
  border: 1px solid #9b8c7e;
  border-radius: .2rem;
  background: #fffcf8;
  color: #371921;
  font: inherit;
}
textarea { resize: vertical; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; margin-top: .2rem; }
.choices label { display: inline-flex; align-items: center; gap: .55rem; min-height: 2.5rem; font-weight: normal; cursor: pointer; }
input[type="radio"] { accent-color: var(--ink); width: 1.05rem; height: 1.05rem; margin: 0; }
small, .note, .draft p { color: var(--muted); font-size: .88rem; line-height: 1.5; }
.note { margin: .15rem 0 0; }
button { color: var(--ink); cursor: pointer; font: inherit; }
.primary, .draft-actions button:not(.text-button) {
  justify-self: start;
  min-height: 2.85rem;
  padding: .62rem 1.4rem;
  background: var(--ink);
  color: white;
  border: 1px solid var(--ink);
  border-radius: .2rem;
}
.primary:hover, .draft-actions button:not(.text-button):hover { background: #752737; }
.send-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; }
#delivery-hint { margin-top: -.57rem; }
.draft h3 { font-size: 1.55rem; }
.draft p { margin: .7rem 0 1.15rem; }
.draft label { display: block; margin-bottom: .35rem; }
.draft-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; margin-block: .7rem; font-size: .9rem; }
.text-button { border: 0; background: none; padding: .5rem .05rem; text-decoration: underline; text-underline-offset: .2em; }
.trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
footer { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: auto; color: var(--gold); font-size: .8rem; flex-wrap: wrap; }
@media (max-width: 740px) {
  .layout { display: flex; flex-direction: column; gap: 1.65rem; margin-block: 1.85rem; }
  h1 { max-width: 17ch; font-size: clamp(2.15rem, 8vw, 3.15rem); }
  .lead { max-width: 44ch; font-size: 1.12rem; }
  .form-panel h2 { font-size: 1.7rem; }
  .direct { align-self: stretch; border: 0; border-top: 1px solid var(--line); padding: 1.3rem 0 0; }
  .direct a { min-height: 2.5rem; }
}
@media (max-width: 400px) {
  .topbar { gap: .5rem; }
  .brand { gap: .35rem; }
  .brand img:first-child { width: 1.4rem; }
  .brand img:last-child { width: 4.3rem; }
  .languages { gap: .65rem; }
  .primary { justify-self: stretch; }
}
