/* Kallavi Sokak: warm paper, ink, and the blue of an Istanbul street sign. */
:root {
  --paper: #f7f2ea;
  --paper-2: #fffdf9;
  --ink: #2b2420;
  --muted: #7d7066;
  --line: #e6dccf;
  --sign: #1f4e8c;
  --rose: #9b3442;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #15120f; --paper-2: #1d1915; --ink: #ece3d6; --muted: #a39686; --line: #332c25; --sign: #2f63aa; --rose: #e0939c; color-scheme: dark; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--sans); }
a { color: var(--rose); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
main.wrap { padding-top: 12px; padding-bottom: 64px; min-height: 60vh; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; }

/* header: the street sign */
.top { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 5; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.sign { display: inline-flex; flex-direction: column; align-items: center; background: var(--sign); color: #fff; border-radius: 6px;
  padding: 3px 14px 4px; outline: 2px solid #fff; outline-offset: -5px; box-shadow: 0 2px 8px rgba(31, 78, 140, .25); line-height: 1.1; }
.sign:hover { text-decoration: none; }
.sign-name { font-family: var(--serif); font-style: italic; font-size: 21px; font-weight: 600; letter-spacing: .02em; }
.sign-sub { font-size: 9px; letter-spacing: .28em; text-transform: uppercase; opacity: .85; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a, .nav .link { color: var(--ink); font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { background: var(--paper-2); text-decoration: none; }
.nav form { margin: 0; }

/* hero */
.hero { text-align: center; padding: 72px 0 40px; }
.hero.small { padding: 48px 0 24px; }
.kicker { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.hero h1 { font-size: clamp(48px, 9vw, 92px); font-style: italic; letter-spacing: -.01em; }
.hero.small h1 { font-size: clamp(40px, 7vw, 64px); }
.lede { font-family: var(--serif); font-size: 23px; color: var(--muted); max-width: 560px; margin: 16px auto 0; }
.empty { text-align: center; font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--muted); padding: 40px 0; }

/* featured poem */
.featured { display: block; max-width: 640px; margin: 8px auto 64px; padding: 40px 44px; background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 4px; color: var(--ink); position: relative; box-shadow: 0 20px 50px -30px rgba(60, 40, 20, .35); }
.featured:hover { text-decoration: none; border-color: var(--rose); }
.featured::before { content: "“"; position: absolute; top: -18px; left: 26px; font: italic 96px/1 var(--serif); color: var(--rose); opacity: .5; }
.featured .label { font-size: 12px; letter-spacing: .25em; text-transform: uppercase; color: var(--rose); }
.featured blockquote { margin: 16px 0 20px; font-family: var(--serif); font-size: 25px; line-height: 1.5; }
.featured blockquote p { margin: 0 0 12px; }
.featured .by { color: var(--muted); font-size: 15px; }

/* cards */
.section-title { text-align: center; font-size: 34px; font-style: italic; margin: 0 0 28px; }
.section-title::after { content: ""; display: block; width: 40px; height: 1px; background: var(--rose); margin: 14px auto 0; }
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.card { display: block; height: 100%; padding: 26px 26px 22px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 4px; color: var(--ink);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.card:hover { text-decoration: none; transform: translateY(-3px); border-color: var(--rose); box-shadow: 0 14px 30px -22px rgba(60, 40, 20, .5); }
.card h3 { font-size: 27px; }
.card-poet { margin: 4px 0 14px; color: var(--rose); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.card-lines { font-family: var(--serif); font-size: 19px; line-height: 1.45; color: var(--muted); }
.card-lines p { margin: 0; }

/* one poem */
.poem { max-width: 620px; margin: 56px auto 40px; }
.poem header { text-align: center; margin-bottom: 40px; }
.poem h1 { font-size: clamp(40px, 7vw, 60px); font-style: italic; }
.poet { margin: 12px 0 0; font-size: 13px; letter-spacing: .25em; text-transform: uppercase; }
.verse { font-family: var(--serif); font-size: 24px; line-height: 1.6; }
.verse p { margin: 0 0 1.3em; }
.source { margin-top: 32px; color: var(--muted); font-size: 14px; font-style: italic; text-align: right; }
.pager { max-width: 620px; margin: 0 auto; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px;
  font-family: var(--serif); font-size: 19px; font-style: italic; }
.pager .next { text-align: right; }

/* poets, prose */
.poets { list-style: none; padding: 0; margin: 0 auto; max-width: 620px; }
.poets li + li { border-top: 1px solid var(--line); }
.poets a { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 4px; color: var(--ink); }
.poets a span { font-family: var(--serif); font-size: 28px; }
.poets a small { color: var(--muted); font-size: 14px; }
.poets a:hover { text-decoration: none; }
.poets a:hover span { color: var(--rose); }
.prose { max-width: 640px; margin: 56px auto; }
.prose h1 { font-size: 56px; font-style: italic; margin-bottom: 24px; }
.prose p { font-family: var(--serif); font-size: 22px; line-height: 1.6; }
.prose .kicker { font-family: var(--sans); font-size: 12px; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 36px 0 44px; text-align: center; }
.foot-line { font-family: var(--serif); font-style: italic; font-size: 20px; margin: 0 0 6px; }
.foot-small { color: var(--muted); font-size: 13px; margin: 0; }

/* management */
.admin main.wrap { padding-top: 28px; }
.panel { background: var(--paper-2); border: 1px solid var(--line); border-radius: 6px; padding: 28px; display: grid; gap: 16px; margin-bottom: 32px; }
.panel.narrow { max-width: 380px; margin: 60px auto; }
.panel h1, .admin h1 { font-size: 34px; font-style: italic; }
.panel label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.panel small { font-weight: 400; color: var(--muted); }
.panel input, .panel textarea { font: inherit; font-weight: 400; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; width: 100%; }
.panel textarea { font-family: var(--serif); font-size: 20px; line-height: 1.5; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.button { justify-self: start; background: var(--sign); color: #fff; border: 0; border-radius: 6px; padding: 10px 22px; font: 600 15px var(--sans); cursor: pointer; }
.link { background: none; border: 0; font: inherit; color: var(--rose); cursor: pointer; padding: 0; }
.link.danger { color: #c0392b; }
.error { color: #c0392b; margin: 0; }
.grid { width: 100%; border-collapse: collapse; font-size: 14px; }
.grid th, .grid td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.grid th { color: var(--muted); font-weight: 600; }
.actions { white-space: nowrap; display: flex; gap: 14px; }
.actions form { margin: 0; }
.scroll { overflow-x: auto; }
.stats { color: var(--muted); }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .top-in { height: 60px; }
  .sign-name { font-size: 18px; }
  .nav a, .nav .link { padding: 6px 8px; font-size: 14px; }
  .hero { padding: 48px 0 28px; }
  .lede { font-size: 20px; }
  .featured { padding: 30px 24px; margin-bottom: 44px; }
  .featured blockquote { font-size: 21px; }
  .verse { font-size: 21px; }
  .row2 { grid-template-columns: 1fr; }
  .prose p { font-size: 20px; }
}
