/* Off-Peak: weekday weekends on the River Lea */
:root {
  --bottle: #1f3a30;
  --bottle-2: #2b4d40;
  --reed: #7f9a5a;
  --reed-soft: #dfe6cf;
  --rust: #c2582b;
  --rust-dark: #963f1b;
  --paper: #f2f1e8;
  --card: #fcfbf5;
  --cream: #f4ecd8;
  --ink: #1d2622;
  --muted: #5b675f;
  --line: #d5d9c8;
  --text: Charter, "Bitstream Charter", "Sitka Text", Cambria, "Noto Serif", serif;
  --head: "Gill Sans", "Gill Sans MT", Seravek, Calibri, "Trebuchet MS", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

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

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

a {
  color: var(--bottle-2);
  text-decoration-thickness: 2px;
  text-decoration-color: var(--reed);
  text-underline-offset: .2em;
}
a:hover { color: var(--rust-dark); text-decoration-color: var(--rust); }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 2px; }

/* Two-column shell: green towpath rail on the left, notes on the right */
.shell {
  display: grid;
  grid-template-columns: 17rem minmax(0, 1fr);
  max-width: 72rem;
  min-height: 100vh;
  margin: 0 auto;
}

.side {
  position: relative;
  background: var(--bottle);
  color: var(--cream);
  padding: 2.2rem 1.6rem;
}
.side::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 6px;
  height: 100%;
  background: repeating-linear-gradient(180deg, var(--rust) 0 14px, transparent 14px 28px);
}
.side-inner { position: sticky; top: 2rem; }

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: var(--cream);
  text-decoration: none;
  font-family: var(--head);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.1;
}
.brand:hover { color: #fff; }
.brand img { border-radius: 50%; box-shadow: 0 0 0 3px var(--bottle-2); }

.motto {
  margin: 1rem 0 1.6rem;
  font-family: var(--head);
  font-size: .98rem;
  line-height: 1.45;
  color: #cfd8c6;
}

.menu {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(244, 236, 216, .2);
}
.menu a {
  color: var(--cream);
  text-decoration: none;
  font-family: var(--head);
  font-size: 1rem;
  padding: .35rem .6rem;
  border-left: 3px solid transparent;
}
.menu a:hover { background: var(--bottle-2); color: #fff; }
.menu a[aria-current="page"] { border-left-color: var(--rust); background: var(--bottle-2); }

.stamp-line {
  margin: 1.8rem 0 0;
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .04em;
  color: #a9b8a5;
}

/* Main column */
.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 2.4rem 2.6rem 0;
}
.content { flex: 1; }

.banner { margin: 0 0 1.6rem; border-radius: 14px; overflow: hidden; background: var(--reed-soft); }
.banner img { width: 100%; }

.intro h1 {
  margin: 0 0 .7rem;
  font-family: var(--head);
  font-weight: 600;
  font-size: 2.3rem;
  line-height: 1.12;
  color: var(--bottle);
}
.intro p { margin: 0; max-width: 38em; font-size: 1.1rem; }

.label {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin: 2.6rem 0 1.2rem;
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rust-dark);
}
.label::after { content: ""; flex: 1; border-top: 2px dotted var(--reed); }

/* The log: a towpath-style timeline of notes */
.log {
  list-style: none;
  margin: 0 0 0 .5rem;
  padding: 0 0 0 1.6rem;
  border-left: 3px solid var(--reed-soft);
}
.log li { position: relative; padding: 0 0 1.8rem; }
.log li:last-child { padding-bottom: .4rem; }
.log li::before {
  content: "";
  position: absolute;
  left: calc(-1.6rem - 9px);
  top: .3rem;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--card);
  border: 3px solid var(--rust);
}
.log time { font-family: var(--mono); font-size: .78rem; letter-spacing: .03em; color: var(--muted); }
.log h3 {
  margin: .1rem 0 .25rem;
  font-family: var(--head);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.25;
}
.log h3 a { color: var(--bottle); text-decoration: none; }
.log h3 a:hover { color: var(--rust-dark); text-decoration: underline; }
.log p { margin: 0; color: var(--muted); }

.where {
  display: inline-block;
  margin-top: .45rem;
  padding: .1rem .55rem;
  border-radius: 999px;
  background: var(--reed-soft);
  color: var(--bottle);
  font-family: var(--mono);
  font-size: .72rem;
}

.todo {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.2rem;
  align-items: start;
  margin: 2.4rem 0 0;
  padding: 1.2rem 1.4rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.todo img { border-radius: 8px; }
.todo h2 { margin: 0 0 .4rem; font-family: var(--head); font-size: 1.15rem; color: var(--bottle); }
.todo ul { margin: 0; padding-left: 1.1rem; }
.todo li { margin: .2rem 0; font-size: .98rem; }
.todo li::marker { color: var(--rust); }

/* Single note */
.post { max-width: 40rem; }
.crumbs { margin: 0 0 1.4rem; font-family: var(--mono); font-size: .78rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--rust-dark); }

.post-head { margin-bottom: 1.4rem; padding-bottom: 1rem; border-bottom: 2px dotted var(--reed); }
.post-head h1 {
  margin: .35rem 0 .6rem;
  font-family: var(--head);
  font-weight: 600;
  font-size: 2.4rem;
  line-height: 1.1;
  color: var(--bottle);
}
.meta { margin: 0; font-family: var(--mono); font-size: .78rem; color: var(--muted); }
.meta b { color: var(--rust); font-weight: 400; }
.standfirst { margin: 0; font-size: 1.14rem; font-style: italic; color: var(--bottle-2); }

.post h2 { margin: 2rem 0 .4rem; font-family: var(--head); font-size: 1.4rem; font-weight: 600; color: var(--bottle); }
.post p { margin: 0 0 1.05rem; }
.post figure { margin: 1.6rem 0; }
.post figure img { width: 100%; border-radius: 12px; background: var(--reed-soft); }
.post figure.small img { max-width: 300px; }
figcaption {
  margin-top: .45rem;
  padding-left: .7rem;
  border-left: 3px solid var(--rust);
  font-family: var(--head);
  font-size: .9rem;
  color: var(--muted);
}

.tip {
  margin: 1.5rem 0;
  padding: .9rem 1.1rem;
  border-radius: 10px;
  background: var(--reed-soft);
  font-family: var(--head);
  font-size: 1rem;
  line-height: 1.55;
}
.tip strong { color: var(--rust-dark); }

.sig { font-style: italic; color: var(--muted); }

.sequence {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 40rem;
  margin: 2.4rem 0 0;
  padding-top: 1.2rem;
  border-top: 2px dotted var(--reed);
}
.sequence a {
  display: block;
  padding: .8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  text-decoration: none;
}
.sequence a:hover { border-color: var(--rust); }
.sequence small {
  display: block;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--rust-dark);
}
.sequence span { display: block; font-family: var(--head); font-size: 1.05rem; font-weight: 600; line-height: 1.3; color: var(--bottle); }
.sequence .later { grid-column: 2; text-align: right; }

/* 404: towpath closure notice */
.notice {
  max-width: 36rem;
  margin: 1rem 0 0;
  padding: 10px;
  border-radius: 6px;
  background: repeating-linear-gradient(45deg, var(--rust) 0 12px, var(--cream) 12px 24px);
}
.notice-inner { padding: 1.6rem 1.6rem 1.3rem; background: var(--card); border-radius: 2px; }
.notice .code { margin: 0; font-family: var(--mono); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--rust-dark); }
.notice h1 { margin: .3rem 0 .7rem; font-family: var(--head); font-size: 2.1rem; line-height: 1.15; color: var(--bottle); }
.notice p { margin: 0 0 1rem; }

.button {
  display: inline-block;
  padding: .55rem 1.1rem;
  border-radius: 999px;
  background: var(--bottle);
  color: var(--cream);
  font-family: var(--head);
  text-decoration: none;
}
.button:hover { background: var(--rust-dark); color: #fff; }

/* Footer */
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .4rem 1.2rem;
  margin-top: 3rem;
  padding: 1.2rem 0 1.6rem;
  border-top: 1px solid var(--line);
  font-family: var(--head);
  font-size: .88rem;
  color: var(--muted);
}
.foot p { margin: 0; }
.foot a { color: var(--muted); }

@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; min-height: 0; }
  .side { padding: 1rem 16px 0; }
  .side::after {
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: repeating-linear-gradient(90deg, var(--rust) 0 14px, transparent 14px 28px);
  }
  .side-inner {
    position: static;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem 1rem;
    padding-bottom: 1.1rem;
  }
  .brand { font-size: 1.4rem; }
  .brand img { width: 32px; height: 32px; }
  .menu { flex-direction: row; gap: .3rem; margin-left: auto; padding-top: 0; border-top: 0; }
  .menu a { padding: .25rem .5rem; border-left: 0; border-bottom: 3px solid transparent; }
  .menu a[aria-current="page"] { border-bottom-color: var(--rust); }
  .motto { order: 3; flex-basis: 100%; margin: .2rem 0 0; font-size: .9rem; }
  .stamp-line { display: none; }
  .main { padding: 1.4rem 16px 0; }
  .intro h1 { font-size: 1.85rem; }
  .post-head h1 { font-size: 1.9rem; }
}

@media (max-width: 520px) {
  body { font-size: 1rem; }
  .menu { margin-left: 0; flex-basis: 100%; }
  .todo { grid-template-columns: 1fr; }
  .todo img { max-width: 140px; }
  .sequence { grid-template-columns: 1fr; }
  .sequence .later { grid-column: auto; text-align: left; }
  .notice h1 { font-size: 1.7rem; }
  .notice-inner { padding: 1.2rem 1.1rem 1rem; }
}
