:root{
  --bg: #f7f4ee;
  --paper: #fbfaf7;
  --ink: #2a2a2a;
  --muted: #5a5a5a;
  --rule: #ded8cd;
  --accent: #6b5b4a;
  --maxw: 760px;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a{
  color: var(--accent);
  text-decoration: none;
}
a:hover{ text-decoration: underline; }

.wrap{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px 18px 64px;
}

.header{
  padding: 18px 0 10px;
  border-bottom: 1px solid var(--rule);
}

.brand{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.brand h1{
  margin: 0;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.brand .tag{
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.nav{
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 16px;
}

.nav a{
  color: var(--ink);
  padding: 6px 0;
}

.main{
  margin-top: 26px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 24px 22px;
}

h2{
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 600;
}

p{ margin: 0 0 14px; }

.rule{
  height: 1px;
  background: var(--rule);
  margin: 20px 0;
}

.cards{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.card{
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 16px 16px 14px;
  background: #fff;
}

.card h3{
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
}

.small{
  color: var(--muted);
  font-size: 14px;
}

.footer{
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
}

.poem{
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
}

.poem pre{
  margin: 0;
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 17px;
  line-height: 1.75;
}

.notice{
  font-size: 14px;
  color: var(--muted);
}

@media (min-width: 740px){
  .brand h1{ font-size: 34px; }
  .main{ padding: 30px 30px; }
  .cards{ grid-template-columns: 1fr 1fr; }
}