﻿@charset "UTF-8";

:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: #242426;
  background: #fafaf9;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
::selection { color: #242426; background: #f9d5c7; }

.site-header,
.site-footer {
  width: min(calc(100% - 80px), 960px);
  margin-inline: auto;
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid #b5472b; outline-offset: 6px; border-radius: 2px; }

.site-header {
  padding-block: 28px;
  border-bottom: 1px solid #e5e5e2;
}

.site-brand {
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.8px;
}
.brand-dot { color: #b5472b; }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-block: 24px;
  border-top: 1px solid #e5e5e2;
  color: #6b6b68;
  font-size: 12px;
  line-height: 1.6;
}
.site-footer a { font-weight: 500; }
.site-footer a:hover { color: #242426; }

.page-shell {
  flex: 1;
  width: min(100%, 744px);
  margin-inline: auto;
  padding: clamp(40px, 7vh, 72px) 40px 80px;
}

.edition {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-bottom: 24px;
  margin-bottom: 52px;
  border-bottom: 1px solid #e5e5e2;
}

.edition-number {
  margin: 0;
  color: #b5472b;
  font-size: 28px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -1.2px;
}

.edition-total {
  color: #767673;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
}

.date-label {
  margin: 0;
  color: #6b6b68;
  font-size: 13px;
}

.poem h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 550;
  line-height: 1.14;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.poem-author {
  margin: 16px 0 44px;
  color: #6b6b68;
  font-size: 15px;
  line-height: 1.6;
}

.poem-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  tab-size: 4;
  font-size: 21px;
  line-height: 1.85;
  letter-spacing: -0.015em;
}

.status {
  margin: 32px 0 0;
  color: #6b6b68;
  font-size: 13px;
  line-height: 1.6;
}
.status:empty { display: none; }

@media (max-width: 600px) {
  .site-header, .site-footer { width: calc(100% - 48px); }
  .site-header { padding-block: 22px; }
  .site-brand { font-size: 20px; }
  .site-footer { padding-block: 20px; }
  .page-shell { padding: 36px 24px 64px; }
  .edition { padding-bottom: 20px; margin-bottom: 36px; }
  .edition-number { font-size: 25px; }
  .date-label { font-size: 12px; }
  .poem-author { margin: 12px 0 32px; font-size: 14px; }
  .poem-text { font-size: 18px; line-height: 1.85; }
}

@media (max-width: 360px) {
  .site-header, .site-footer { width: calc(100% - 40px); }
  .page-shell { padding-inline: 20px; }
  .poem h1 { font-size: 32px; }
  .poem-text { font-size: 17px; }
}
