/* Mixed Use, shared styles. Palette by Blue. Light is the default; dark only via the toggle. */
:root, :root[data-theme="light"] {
  --bg: #f6f1e6;
  --card: #fffcf4;
  --ink: #161922;
  --dim: #5e584c;
  --hair: #d8cfbc;
  --gold: #c9a84c;
  --cobalt: #1d4ed8;
}
:root[data-theme="dark"] {
  --bg: #0e1016;
  --card: #171a23;
  --ink: #efe9dc;
  --dim: #a39a87;
  --hair: #2b3142;
  --gold: #e0c060;
  --cobalt: #7b9cff;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }

.meta, .bar, .toggle, .site-foot, .status {
  font-family: ui-monospace, Menlo, Consolas, monospace;
}

/* Shared bar: brand, the three doors, Home, theme toggle */
.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  max-width: 1060px;
  width: 100%;
  margin: 0 auto;
  padding: 18px clamp(20px, 5vw, 52px);
  border-bottom: 1px solid var(--gold);
}
.brand {
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cobalt);
  text-decoration: none;
  margin-right: auto;
}
.bar ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.bar ul a {
  font-size: 13px;
  letter-spacing: .04em;
  text-decoration: none;
  color: var(--dim);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.bar ul a:hover { color: var(--ink); border-bottom-color: var(--gold); }
.bar ul a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); }
.toggle {
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--hair);
  padding: 8px 14px;
  cursor: pointer;
}
.toggle:hover { border-color: var(--cobalt); }

main {
  flex: 1;
  max-width: 1060px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(48px, 10vh, 120px) clamp(20px, 5vw, 52px);
}

/* Header with the ring motif: two thin gold rings that overlap and stay their own */
.hero {
  position: relative;
  padding-bottom: clamp(40px, 7vh, 72px);
  margin-bottom: clamp(48px, 8vh, 88px);
  border-bottom: 1px solid var(--gold);
}
.rings {
  position: absolute;
  right: 0;
  top: 50%;
  width: clamp(160px, 30vw, 300px);
  height: auto;
  transform: translateY(-58%);
  pointer-events: none;
}
.rings circle { fill: none; stroke: var(--gold); stroke-width: 1; }
.hero h1 {
  position: relative;
  font-weight: normal;
  font-size: clamp(48px, 10vw, 112px);
  letter-spacing: .06em;
  line-height: 1;
  margin: 0 0 24px;
}
.hero .line {
  position: relative;
  font-size: clamp(20px, 3vw, 28px);
  font-style: italic;
  margin: 0;
}

.about { max-width: 640px; margin: 0 0 32px; }
.about p, .prose p {
  font-size: clamp(18px, 2.2vw, 20px);
  line-height: 1.65;
  margin: 0 0 18px;
}
.credit {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--dim);
  margin: 0;
}

section + section { margin-top: clamp(64px, 10vh, 112px); }
.section-title {
  font-weight: normal;
  font-size: clamp(26px, 3.4vw, 34px);
  margin: 0 0 28px;
}

/* Doors */
.doors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.door {
  display: block;
  height: 100%;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--hair);
  border-top: 2px solid var(--gold);
  padding: clamp(24px, 3vw, 36px);
}
.door:hover { border-color: var(--gold); }
.door h3 {
  font-weight: normal;
  font-size: clamp(24px, 2.6vw, 30px);
  margin: 0 0 12px;
}
.door p { margin: 0; color: var(--dim); font-size: 17px; line-height: 1.55; }

/* Posts and rooms: roomy cards, name and label on top, date small */
.post {
  background: var(--card);
  border: 1px solid var(--hair);
  border-left: 2px solid var(--gold);
  padding: clamp(28px, 4.5vw, 56px);
  max-width: 760px;
}
.meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px 18px;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--dim);
  padding-bottom: 16px;
  margin: 0 0 clamp(24px, 3vw, 36px);
  border-bottom: 1px solid var(--hair);
}
.meta .who { color: var(--ink); }
.meta time { font-size: 12px; }
.post h1, .post h2 {
  font-weight: normal;
  margin: 0 0 24px;
}
.post h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.05; }
.post h2 { font-size: clamp(26px, 3.4vw, 34px); }
.prose { max-width: 640px; }
.prose strong { font-weight: bold; }
.sign {
  margin: clamp(32px, 4vw, 48px) 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--gold);
  display: inline-block;
}
.sign .name { display: block; font-size: 22px; }
.sign .label {
  display: block;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--dim);
  margin-top: 4px;
}
.read {
  display: inline-block;
  margin-top: 8px;
  font-size: 18px;
  color: var(--cobalt);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.rooms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.rooms .post { max-width: none; height: 100%; }
.rooms .post h2 { margin-bottom: 14px; }
.rooms .post p { margin: 0 0 18px; font-size: 17px; line-height: 1.6; color: var(--dim); }
.status {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--ink);
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 5px 14px;
}

.lead {
  font-size: clamp(20px, 2.6vw, 24px);
  line-height: 1.55;
  max-width: 640px;
  margin: 0 0 clamp(40px, 6vh, 64px);
}
.page-title {
  font-weight: normal;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.05;
  margin: 0 0 20px;
}
.empty {
  border: 1px dashed var(--hair);
  padding: clamp(32px, 5vw, 64px);
  max-width: 760px;
  color: var(--dim);
  font-size: clamp(18px, 2.2vw, 20px);
  line-height: 1.6;
}
.empty p { margin: 0; }

.site-foot {
  max-width: 1060px;
  width: 100%;
  margin: 0 auto;
  padding: 24px clamp(20px, 5vw, 52px) 40px;
  border-top: 1px solid var(--gold);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--dim);
}
.site-foot a { color: var(--dim); }
.site-foot a:hover { color: var(--ink); }

@media (max-width: 760px) {
  .doors, .rooms { grid-template-columns: 1fr; }
  .rings { opacity: .55; }
}
@media (max-width: 560px) {
  .bar { padding: 14px 20px; }
  main { padding: 44px 20px 56px; }
  .site-foot { padding: 20px 20px 32px; }
  .about p, .prose p { font-size: 19px; }
  .door p, .rooms .post p { font-size: 18px; }
  .rings { width: 140px; top: 0; transform: none; opacity: .4; }
}
