:root {
  color-scheme: light;
  --paper: #f7f6f1;
  --ink: #1c2927;
  --muted: #54635e;
  --line: #cacdc3;
  --accent: #a34521;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 'DM Sans', sans-serif; }
.frame { max-width: 1240px; padding-inline: clamp(20px,5vw,72px); margin-inline: auto; }
.top { background: #fff; border-bottom: 1px solid var(--line); }
.top-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.top img { display: block; width: clamp(125px,16vw,165px); height: auto; }
a { color: inherit; }
.back { text-decoration: none; font-size: .92rem; }
.back:hover { text-decoration: underline; }
.back span { margin-right: .3rem; }
main { padding-block: clamp(38px,6vw,82px); }
h1,h2,p,dl,dd { margin: 0; }
h1 { font-size: clamp(2.65rem,6.4vw,5.25rem); line-height: 1.04; letter-spacing: -.065em; font-weight: 500; }
h1 em { color: var(--accent); font: italic 1.12em/1 'Instrument Serif', Georgia, serif; letter-spacing: -.035em; }
.intro { max-width: 56ch; margin: 1.05rem 0 2.4rem; color: var(--muted); }
.workspace { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px,5vw,74px); align-items: start; }
.fields { border-top: 1px solid var(--line); padding-top: 1.25rem; }
label { display: block; font-weight: 600; margin-bottom: .38rem; }
label:not(:first-child) { margin-top: 1.1rem; }
small { font-size: .76rem; font-weight: 400; margin-left: .25rem; color: var(--muted); }
input,textarea,select { min-height: 46px; width: 100%; border: 1px solid #a7afa7; border-radius: 2px; background: #fff; color: var(--ink); font: inherit; padding: .6rem .8rem; }
input::placeholder,textarea::placeholder { color: #63716b; opacity: 1; }
textarea { resize: vertical; }
.preview { background: #eaece3; border-top: 3px solid var(--ink); padding: clamp(19px,3.3vw,42px); overflow-wrap: anywhere; }
h2 { font-size: clamp(1.55rem,2.5vw,2.15rem); line-height: 1.15; font-weight: 500; letter-spacing: -.05em; }
dl { display: grid; grid-template-columns: max-content 1fr; gap: .3rem .9rem; padding-block: 1.25rem; border-bottom: 1px solid #b7c0b5; }
dt { color: var(--muted); }
dd { font-weight: 500; }
.body { white-space: pre-wrap; margin-block: 1.15rem 1.6rem; line-height: 1.6; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; }
.primary,button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; font: 600 .91rem/1.3 'DM Sans',sans-serif; cursor: pointer; }
.primary { gap: 12px; padding: .8rem 1.1rem; background: var(--ink); color: #fff; text-decoration: none; }
.primary:hover { background: #314640; }
button { background: transparent; color: var(--ink); border: 0; padding: .5rem 0; text-decoration: underline; text-underline-offset: 4px; }
.status:not(:empty) { margin-top: .8rem; font-size: .87rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media(max-width: 760px) {
  .workspace { grid-template-columns: 1fr; }
  .top-inner { min-height: 66px; }
}
