:root {
  --paper: #fff;
  --surface: #fff;
  --ink: #151515;
  --muted: #595959;
  --rule: #dedede;
  --accent: #151515;
  --display: "Baskerville", "Times New Roman", Georgia, serif;
  --sans: "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: light; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }

.page {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  max-width: 1700px;
  margin: auto;
  padding-inline: clamp(24px, 4.6vw, 78px);
}

.masthead, .footer {
  display: flex;
  align-items: center;
  justify-content: center;
}

.masthead { min-height: 65px; border-bottom: 1px solid var(--rule); }
.wordmark {
  font: 400 clamp(19px, 1.7vw, 23px)/1.15 var(--display);
  letter-spacing: -.022em;
  word-spacing: -.035em;
  white-space: nowrap;
}
.small-type { font: 500 10px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.footer { position: relative; min-height: 76px; }
.footer::before {
  position: absolute;
  top: 0;
  width: 148px;
  height: 1px;
  background: var(--rule);
  content: "";
}
.contact-icons { display: flex; align-items: center; gap: 8px; }
.contact-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}
.contact-icon svg { width: 19px; height: 19px; }
.contact-icon:hover { background: #f3f3f3; }
.contact-icon:focus-visible { outline: 1px solid var(--ink); outline-offset: 0; }

.editorial {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: clamp(76px, 12vh, 125px) clamp(65px, 9vh, 100px);
}

.cover-type { width: 100%; text-align: center; }
.cover-type h1 {
  margin: 0;
  font: 400 clamp(56px, 6.1vw, 100px)/.99 var(--display);
  letter-spacing: -.05em;
  font-kerning: normal;
  text-wrap: balance;
}

.cover-type h1 span { display: block; }
.intro { width: 100%; max-width: 545px; margin-top: clamp(42px, 6.3vh, 66px); }
.intro p, .confirmation p { margin: 0 0 24px; color: var(--ink); font-size: 15px; line-height: 1.78; }
.intro p { font-size: 16px; text-align: justify; text-align-last: start; overflow-wrap: anywhere; }
.intro p:last-of-type { margin-bottom: 0; }
.intro .primary { display: flex; width: fit-content; margin: 40px auto 0; padding-inline: 32px; }

.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 47px;
  padding: 0 27px;
  border: 1px solid var(--ink);
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .045em;
  transition: background .2s, color .2s;
}

.primary:hover, .intro .primary, .form-actions .primary { background: var(--ink); color: var(--surface); }
.intro .primary:hover, .form-actions .primary:hover { background: var(--surface); color: var(--ink); }

.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(68vw, 1060px);
  min-width: min(600px, 100vw);
  height: 100%;
  height: 100dvh;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--surface);
  color: var(--ink);
}

.drawer[open] { animation: slide-in .28s cubic-bezier(.2, .65, .35, 1) both; }
.drawer::backdrop { background: rgb(0 0 0 / .13); backdrop-filter: blur(5px); }
@keyframes slide-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .drawer[open] { animation: none; } .primary { transition: none; } }

.drawer-frame { display: grid; grid-template-rows: auto minmax(0, 1fr); height: 100%; }
.drawer-header {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 13px;
  min-height: 72px;
  padding-inline: clamp(22px, 4vw, 53px);
  border-bottom: 1px solid var(--rule);
}

.drawer-header h2 { margin: 0; font-size: 13px; letter-spacing: .025em; text-transform: none; }
.close { width: 32px; height: 40px; padding: 0; border: 0; background: transparent; color: var(--ink); font: 400 29px/1 var(--display); }
.drawer-scroll { overflow: auto; overscroll-behavior: contain; }
#submission-form, .confirmation { width: min(100%, 680px); margin-inline: auto; padding: 58px 38px 84px; }
.form-section + .form-section { margin-top: clamp(78px, 10vh, 108px); }
.form-section h3, .confirmation h3 {
  margin: 0 0 28px;
  font: 400 clamp(27px, 2.55vw, 35px)/1.14 var(--display);
  letter-spacing: -.027em;
  font-kerning: normal;
  text-align: center;
}

.field {
  position: relative;
  display: block;
  margin-top: 16px;
  border-bottom: 1px solid var(--rule);
}

.field:focus-within { border-color: var(--accent); }
.field-label {
  position: absolute;
  inset: 22px 0 auto;
  z-index: 1;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  pointer-events: none;
  transition: top .14s ease, color .14s ease;
}

.required { color: var(--accent); }
.field:focus-within .field-label,
.field:has(input:not(:placeholder-shown)) .field-label,
.field:has(textarea:not(:placeholder-shown)) .field-label,
.field:has(select:valid) .field-label {
  top: 8px;
  font-size: 12px;
}

.field:focus-within .field-label { color: var(--accent); }
.field input, .field select, .field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 63px;
  padding: 25px 0 10px;
  border: 0;
  outline: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.4;
}

.field textarea { min-height: 90px; padding-top: 29px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { opacity: 0; }
.field-select select { appearance: none; padding-right: 30px; cursor: pointer; }
.field-select::after {
  position: absolute;
  top: 26px;
  right: 5px;
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  border: solid var(--muted);
  border-width: 0 1px 1px 0;
  content: "";
  pointer-events: none;
}

.field-date input:invalid:not(:focus) { color: transparent; }
.field-date:has(input:invalid:not(:focus)) .field-label { top: 22px; font-size: 14px; }
.field-date input::-webkit-calendar-picker-indicator { opacity: .65; cursor: pointer; }

.media-field { padding-top: 16px; }
.media-field .field-label, .media-field:focus-within .field-label,
.media-field:has(input:not(:placeholder-shown)) .field-label {
  position: static;
  display: block;
  font-size: 14px;
  pointer-events: auto;
  cursor: text;
}
.media-field .field-note { display: block; margin-top: 9px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.media-field input { min-height: 43px; padding: 7px 0 8px; }

.choice-group { margin: 0; padding: 0; border: 0; }
.choice-group legend { width: 100%; margin: 0 auto 20px; text-align: center; font: 400 clamp(22px, 2.05vw, 27px)/1.2 var(--display); letter-spacing: -.02em; }
.choices { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--rule); }
.choices label { position: relative; cursor: pointer; text-align: center; }
.choices input { position: absolute; top: 50%; left: 50%; width: 1px; height: 1px; margin: 0; opacity: 0; }
.choices span { display: block; min-height: 46px; padding: 12px 4px 10px; border-bottom: 2px solid transparent; color: var(--muted); font-size: 14px; }
.choices label:hover span { color: var(--accent); }
.choices input:checked + span { border-bottom-color: var(--accent); color: var(--accent); font-weight: 500; }
.choices input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: -4px; }
.publication .permission { margin-top: clamp(50px, 7vh, 72px); }
.form-actions { margin-top: 42px; text-align: center; }
.form-actions p { margin: 14px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.form-actions p:empty { margin: 0; }
.form-actions .primary:disabled { opacity: .65; cursor: wait; }
.confirmation { display: grid; justify-items: center; gap: 17px; padding-block: 95px; text-align: center; }
.confirmation h3, .confirmation p { margin: 0; }
.confirmation p { max-width: 360px; }

@media (min-width: 801px) {
  .page { max-width: none; }
  .cover-type h1 { font-size: clamp(54px, 4.8vw, 80px); }
  .intro { max-width: 820px; }
  .intro p { font-size: 17px; }
}

@media (max-width: 800px) {
  .masthead { min-height: 59px; }
  .editorial { padding-block: 57px 50px; }
  .cover-type h1 { font-size: clamp(44px, 6.8vw, 54px); }
  .intro { max-width: 520px; }
  .intro p { font-size: 15px; }
  .footer { min-height: 65px; }
  .drawer { width: 100%; min-width: 0; }
  .drawer-header { min-height: 61px; padding-inline: 15px; gap: 8px; }
  #submission-form, .confirmation { padding: 46px 30px 72px; }
  .form-section + .form-section { margin-top: 76px; }
  .form-section h3, .confirmation h3 { font-size: 28px; }
}

@media (max-width: 540px) {
  .editorial { padding-block: 44px 46px; }
  .intro { margin-top: 35px; }
  .intro p { margin-bottom: 19px; padding-inline: 10px; font-size: 14px; line-height: 1.75; }
  .intro .primary { margin-top: 31px; }
  #submission-form, .confirmation { padding: 42px 25px 68px; }
  .form-section + .form-section { margin-top: 70px; }
  .form-section h3, .confirmation h3 { font-size: 25px; }
  .choice-group legend { font-size: 21px; }
}

@media (max-width: 380px) {
  .page { padding-inline: 19px; }
  .cover-type h1 { font-size: clamp(38px, 11.5vw, 44px); }
  .drawer-header h2 { font-size: 12px; }
  #submission-form, .confirmation { padding-inline: 20px; }
}
