/* The Ribbed Glass: a slow notebook from Frankfurt am Main */
:root {
  --stone: #eceae4;
  --sheet: #fbfaf6;
  --cobalt: #2b3d85;
  --cobalt-deep: #1b2757;
  --cobalt-mist: #c9cfe6;
  --apple: #5f7a1c;
  --cider: #d6a03c;
  --cider-deep: #9a6a1c;
  --cider-wash: #f6ead0;
  --rhubarb: #9a3d3a;
  --slate: #3f4a5a;
  --ink: #24262c;
  --muted: #5f626b;
  --rule: #d6d2c7;
  --text: Charter, "Bitstream Charter", "Sitka Text", Cambria, "Iowan Old Style", Georgia, serif;
  --display: "Avenir Next Condensed", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --lattice: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.16) 0 2px, transparent 2px 10px),
             repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.16) 0 2px, transparent 2px 10px);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--cobalt); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--apple); }

/* Two columns: a cobalt rail on the left, the page on the right */
.shell {
  display: grid;
  grid-template-columns: 17rem minmax(0, 1fr);
  max-width: 74rem;
  min-height: 100vh;
  margin: 0 auto;
  box-shadow: 0 0 0 1px var(--rule);
}

.side {
  position: relative;
  background: var(--cobalt);
  color: #eef0f8;
  padding: 2.6rem 1.9rem 2rem 1.7rem;
}
.side::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 10px;
  background-color: var(--cobalt-deep);
  background-image: var(--lattice);
}
.side-inner { position: sticky; top: 2.6rem; }

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  color: #fff;
  text-decoration: none;
  font-family: var(--display);
  font-stretch: condensed;
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1.02;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.brand:hover { color: #fff; }
.brand img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  box-shadow: 0 0 0 3px var(--cider);
}

.tagline {
  margin: 1rem 0 1.8rem;
  color: var(--cobalt-mist);
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.5;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nav a {
  color: #eef0f8;
  text-decoration: none;
  padding: 0.35rem 0 0.35rem 0.9rem;
  border-left: 3px solid transparent;
}
.nav a:hover { color: #fff; border-left-color: rgba(214, 160, 60, 0.6); }
.nav a[aria-current="page"] { color: #fff; border-left-color: var(--cider); }

.side-note {
  margin: 2.2rem 0 0;
  padding-top: 1rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.3);
  color: #aab2d6;
  font-family: var(--mono);
  font-size: 0.74rem;
  line-height: 1.7;
}

.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--sheet);
  padding: 3rem clamp(1.25rem, 4vw, 3.6rem) 0;
}
.content { flex: 1; max-width: 41rem; }

/* Home */
.intro h1 {
  margin: 0 0 1rem;
  color: var(--cobalt-deep);
  font-family: var(--display);
  font-stretch: condensed;
  font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 3rem);
  line-height: 1.04;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.lede { margin: 0; color: var(--muted); font-size: 1.14rem; }
.hero-art {
  margin: 2rem 0 0;
  border: 1px solid var(--rule);
  border-radius: 4px;
}

.label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 3rem 0 0.4rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.label::after { content: ""; flex: 1; border-top: 2px solid var(--cobalt); }

.timetable { list-style: none; margin: 0 0 3rem; padding: 0; }
.timetable li {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0 1.4rem;
  padding: 1.35rem 0;
  border-bottom: 1px dashed var(--rule);
}
.stamp {
  padding-top: 0.3rem;
  color: var(--cobalt);
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}
.timetable h3 {
  margin: 0.35rem 0 0.3rem;
  font-size: 1.3rem;
  line-height: 1.3;
}
.timetable h3 a { color: var(--ink); text-decoration: none; }
.timetable h3 a:hover { color: var(--cobalt); text-decoration: underline; }
.timetable p { margin: 0; color: var(--muted); font-size: 1rem; }

/* Little line badges, like the numbers on the front of a tram */
.tag {
  display: inline-block;
  padding: 0.08rem 0.5rem;
  border-radius: 3px;
  color: #fff;
  background: var(--slate);
  font-family: var(--display);
  font-stretch: condensed;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  line-height: 1.6;
  text-transform: uppercase;
}
.tag-river { background: var(--cobalt); }
.tag-wine { background: var(--cider-deep); }
.tag-glass { background: var(--apple); }
.tag-market { background: var(--rhubarb); }
.tag-tram { background: var(--slate); }

/* Posts */
.entry { padding-bottom: 1rem; }
.crumb { margin: 0 0 1.4rem; font-family: var(--mono); font-size: 0.8rem; }
.crumb a { text-decoration: none; }
.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8rem;
}
.entry h1 {
  margin: 0.7rem 0 0.8rem;
  color: var(--cobalt-deep);
  font-family: var(--display);
  font-stretch: condensed;
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.08;
  text-transform: uppercase;
}
.standfirst {
  margin: 0 0 1.8rem;
  padding-bottom: 1.4rem;
  border-bottom: 3px double var(--rule);
  color: var(--muted);
  font-style: italic;
  font-size: 1.16rem;
}

.prose > p:first-child::first-letter {
  float: left;
  margin: 0.32rem 0.5rem 0 0;
  color: var(--cobalt);
  font-family: var(--display);
  font-weight: 700;
  font-size: 3.4rem;
  line-height: 0.9;
}
.prose h2 {
  margin: 2.3rem 0 0.4rem;
  color: var(--cobalt);
  font-family: var(--display);
  font-stretch: condensed;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.prose figure {
  margin: 2rem 0;
  padding: 1rem;
  background: var(--stone);
  border-radius: 6px;
}
.prose figure img { margin: 0 auto; }
figcaption {
  margin-top: 0.7rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.55;
}
.prose blockquote {
  position: relative;
  margin: 1.8rem 0;
  padding: 0.9rem 1.2rem 0.9rem 3rem;
  background: var(--cider-wash);
  border-radius: 6px;
  font-style: italic;
}
.prose blockquote::before {
  content: "\201C";
  position: absolute;
  left: 0.75rem;
  top: 0.1rem;
  color: var(--cider-deep);
  font-family: Georgia, serif;
  font-size: 3rem;
  line-height: 1;
}
.prose blockquote p { margin: 0; }

.prev-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 3rem 0 2.5rem;
}
.prev-next a {
  display: block;
  padding: 0.9rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.4;
}
.prev-next a:hover { border-color: var(--cobalt); color: var(--cobalt); }
.prev-next span {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.prev-next .newer { grid-column: 2; text-align: right; }

/* About and other plain pages */
.page { padding-bottom: 2.5rem; }
.page h1 {
  margin: 0 0 1.2rem;
  color: var(--cobalt-deep);
  font-family: var(--display);
  font-stretch: condensed;
  font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 2.8rem);
  line-height: 1.05;
  text-transform: uppercase;
}
.page .sketch {
  float: right;
  width: 44%;
  margin: 0.4rem 0 1rem 1.6rem;
  padding: 0.6rem;
  background: var(--stone);
  border-radius: 6px;
}
.page .sign-off { clear: both; margin-top: 2rem; font-family: var(--mono); font-size: 0.85rem; }

.lost { padding: 1rem 0 3rem; text-align: center; }
.lost img {
  max-width: 300px;
  margin: 0 auto 1.6rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
}
.lost h1 { margin-bottom: 0.6rem; }
.lost .stamp { display: block; margin-bottom: 0.6rem; padding: 0; }
.lost p { max-width: 30rem; margin-left: auto; margin-right: auto; }

/* Footer */
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
  max-width: 41rem;
  padding: 1.4rem 0 2rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.74rem;
}
.foot p { margin: 0; }

/* Phones and narrow windows: the rail becomes a bar on top */
@media (max-width: 820px) {
  body { font-size: 1rem; }
  .shell { display: flex; flex-direction: column; box-shadow: none; }
  .main { flex: 1; }
  .side { padding: 0.9rem 16px calc(0.9rem + 8px); }
  .side::after { top: auto; left: 0; width: auto; height: 8px; }
  .side-inner {
    position: static;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem 1rem;
  }
  .brand { flex-direction: row; align-items: center; gap: 0.7rem; font-size: 1.25rem; }
  .brand img { width: 36px; height: 36px; border-radius: 8px; box-shadow: 0 0 0 2px var(--cider); }
  .tagline, .side-note { display: none; }
  .nav { flex-direction: row; gap: 1.1rem; }
  .nav a { padding: 0.2rem 0; border-left: 0; border-bottom: 2px solid transparent; }
  .nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--cider); }
  .main { padding: 1.8rem 16px 0; }
  .timetable li { grid-template-columns: 1fr; }
  .stamp { padding-top: 0; }
  .prev-next { grid-template-columns: 1fr; }
  .prev-next .newer { grid-column: auto; text-align: left; }
  .page .sketch { float: none; width: 100%; margin: 0 0 1.4rem; }
}
