:root {
  color-scheme: light;
  --paper: #fbfbfb;
  --ink: #242923;
  --forest: #0a1712;
  --cream: #e9e5d6;
  --rule: #d1d4cb;
  --sans: "IBM Plex Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
::selection { color: #fff; background: #43553e; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: #54714a; }
:focus-visible { outline: 2px solid #778d6b; outline-offset: 6px; }
p, h1, h2, figure { margin: 0; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; top: -90px; left: 20px; z-index: 20; background: var(--paper); color: var(--ink); padding: 12px; font-size: 15px; }
.skip:focus { top: 15px; }
.publication { display: grid; grid-template-columns: 55% 45%; align-items: start; }
.art-side { position: sticky; top: 0; min-width: 0; height: 100vh; height: 100dvh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: var(--forest); color: var(--cream); padding-block: 29px; }
.identity, .art-foot { padding-inline: 32px; display: flex; justify-content: space-between; gap: 20px; }
.identity { align-items: baseline; }
.name { font-size: 24px; line-height: 1.2; letter-spacing: -.025em; text-decoration: none; }
.identity > span { font-size: 13px; color: #adb5a7; }
.artwork { min-width: 0; min-height: 0; display: grid; place-items: center; padding-block: 16px; container-type: size; }
.art-surface { position: relative; width: min(100cqw, 100cqh); aspect-ratio: 1; max-width: 100%; touch-action: pan-y; }
.art-surface > img, .art-surface > canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.art-surface, .art-surface > img, .art-surface > canvas { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.art-surface > img { -webkit-user-drag: none; }
.art-surface:focus-visible { outline-offset: -4px; }
.art-foot { align-items: end; }
.art-foot p { font-size: clamp(20px, 1.8vw, 27px); line-height: 1.2; letter-spacing: -.02em; }
.art-foot a { font-size: 13px; line-height: 1.5; white-space: nowrap; padding-bottom: 3px; text-decoration: none; }
.art-foot a span { margin-left: 6px; }
.art-side a:hover { color: #fff; }
.reading-side { min-width: 0; padding: 59px clamp(30px, 3.4vw, 64px) 32px; }
article { max-width: 590px; margin-inline: auto; }
.opening-line { font-size: 13px; line-height: 1.6; margin-bottom: 28px; }
h1 { font-family: "Niconne", cursive; font-size: clamp(48px, 4.4vw, 72px); font-weight: 400; line-height: 1.08; letter-spacing: normal; margin-bottom: 30px; text-wrap: pretty; }
h1 em { font: inherit; }
article p:not(.opening-line) { font-size: 20px; line-height: 1.55; letter-spacing: -.008em; }
article p + p { margin-top: 1em; }
article section { padding-top: 48px; }
.story-break { margin-top: 36px; padding-top: 36px; border-top: 1px solid var(--rule); }
h2 { font-size: 22px; font-weight: 500; line-height: 1.25; letter-spacing: -.025em; margin-bottom: 18px; }
article a { text-decoration-color: #788b71; }
article a:hover { text-decoration-color: currentColor; }
article p.invitation { margin-top: 28px; }
footer { max-width: 590px; margin: 54px auto 0; padding-top: 24px; border-top: 1px solid var(--rule); font-size: 13px; line-height: 1.6; }
.elsewhere { display: flex; gap: 28px; }
footer a { text-decoration: none; }
.endnote { display: flex; justify-content: space-between; gap: 20px; margin-top: 26px; color: #71776c; font-size: 12px; }

.contact-link { appearance: none; border: 0; padding: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: #788b71; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.contact-link:hover { color: #54714a; text-decoration-color: currentColor; }
#contact-dialog { width: min(580px, calc(100vw - 40px)); max-height: calc(100dvh - 40px); margin: auto; padding: 32px; overflow: auto; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); box-shadow: 0 20px 80px #0a171226; }
#contact-dialog::backdrop { background: #0a171273; }
.contact-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
.contact-heading h2 { margin: 0; font-size: 25px; font-weight: 400; }
.contact-close { border: 0; background: none; color: inherit; font: inherit; font-size: 28px; line-height: 1; width: 44px; height: 44px; margin: -8px -10px -8px 0; cursor: pointer; }
.contact-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 22px; }
#contact-form label { display: grid; gap: 8px; font-size: 15px; line-height: 1.4; }
#contact-form input, #contact-form textarea { width: 100%; min-width: 0; border: 1px solid #abb2a6; border-radius: 0; background: transparent; color: inherit; padding: 11px 12px; font: 18px/1.5 var(--sans); }
#contact-form textarea { resize: vertical; min-height: 156px; }
#contact-form :focus-visible { outline-offset: 3px; }
.contact-actions { margin-top: 22px; display: grid; gap: 18px; justify-items: start; }
#contact-status { font-size: 15px; line-height: 1.45; }
#contact-status:empty { display: none; }
.contact-send { border: 1px solid var(--forest); background: var(--forest); color: var(--paper); padding: 12px 20px; font: 16px/1.4 var(--sans); cursor: pointer; }
.contact-send:disabled { opacity: .55; cursor: wait; }
.contact-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

@media (max-width: 500px) {
  #contact-dialog { padding: 24px; }
  .contact-fields { grid-template-columns: 1fr; }
}

@media (min-width: 1700px) {
  .reading-side { padding-top: 76px; }
  article p:not(.opening-line) { font-size: 21px; }
}

@media (max-height: 720px) and (min-width: 901px) {
  .art-side { padding-block: 22px; }
  .artwork { padding-block: 10px; }
  .art-foot p { font-size: 22px; }
}

@media (max-width: 1100px) and (min-width: 901px) {
  .publication { grid-template-columns: 53% 47%; }
  .identity, .art-foot { padding-inline: 24px; }
  .reading-side { padding-inline: 30px; padding-top: 40px; }
  h1 { font-size: 50px; }
  .art-foot p { font-size: 21px; }
}

@media (max-width: 900px) {
  .publication { display: block; }
  .art-side { position: relative; height: auto; display: block; padding: 24px 0 16px; }
  .identity { padding-inline: 28px; }
  .artwork { container-type: normal; padding: 18px 0 0; }
  .art-surface { width: min(100%, 620px); }
  .art-foot { display: none; }
  .reading-side { padding: 42px max(28px, calc((100vw - 610px) / 2)) 30px; }
  h1 { font-size: clamp(48px, 7vw, 66px); max-width: 550px; }
  .opening-line { margin-bottom: 22px; }
  article section { padding-top: 40px; }
  article p:not(.opening-line) { font-size: 20px; }
  footer { margin-top: 42px; }
}

@media (max-width: 450px) {
  .identity { padding-inline: 22px; gap: 12px; }
  .name { font-size: 23px; }
  .identity > span { font-size: 12px; }
  .reading-side { padding: 34px 24px 27px; }
  h1 { font-size: 48px; margin-bottom: 26px; }
  .opening-line { font-size: 13px; }
  article p:not(.opening-line) { font-size: 19px; }
  h2 { font-size: 21px; }
  .endnote { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

@media print {
  @page { size: A4; margin: 18mm; }
  :root { --paper: #fff; --ink: #000; }
  .publication { display: block; }
  .skip, .artwork, .art-foot, .endnote a, #contact-dialog { display: none !important; }
  .art-side { display: block; position: static; height: auto; background: white; color: black; padding: 0; }
  .identity { padding: 0; margin-bottom: 20pt; }
  .identity > span { color: black; }
  .reading-side { padding: 0; }
  article, footer { max-width: none; }
  .opening-line { font-size: 9pt; margin-bottom: 15pt; }
  h1 { font-size: 29pt; max-width: 450pt; margin-bottom: 18pt; }
  article p:not(.opening-line) { font-size: 11pt; line-height: 1.5; }
  article section { padding-top: 20pt; }
  .story-break { margin-top: 20pt; padding-top: 20pt; }
  h2 { font-size: 13pt; margin-bottom: 13pt; break-after: avoid; }
  p { orphans: 3; widows: 3; }
  footer { margin-top: 26pt; padding-top: 15pt; }
}
