:root {
  --paper: #efece3;
  --ink: #111111;
  --accent: #c98a4b;
  --muted: #444444;
  --soft: #333333;
  --display: 'Josefin Sans', 'Trebuchet MS', sans-serif;
  --pixel: 'Silkscreen', 'Courier New', monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(17, 17, 17, 0.16) 1px, transparent 1.3px);
  background-size: 9px 9px;
  color: var(--ink);
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  font-size: 15px;
  line-height: 1.55;
}
a { color: var(--ink); }
a:hover { color: #6b3d14; }
:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 2px; }
[hidden] { display: none !important; }
img { max-width: 100%; }

/* layout */
/* Phone: sidebar, then the page, then the mailing list.
   Wider: sidebar with the mailing list under it, page on the right. */
.wrap {
  max-width: 1120px; margin: 0 auto; padding: 36px 24px 48px;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px;
  grid-template-areas: "side" "main" "join" "foot";
  align-items: start;
}
.foot { grid-area: foot; }
.side { grid-area: side; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.main { grid-area: main; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.join { grid-area: join; min-width: 0; }
@media (min-width: 860px) {
  .wrap {
    grid-template-columns: 250px minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    grid-template-areas: "side main" "join main" ". foot";
    row-gap: 24px;
  }
}

/* mailing list */
.join-form { display: flex; flex-direction: column; gap: 14px; }
.join-intro { margin: 0; }
.join-form .btn { align-self: flex-start; }
.join-form .msg:empty { display: none; }
.hint { font-size: 12px; color: var(--soft); line-height: 1.4; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.addr-set { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.addr-set legend { font-family: var(--pixel); font-size: 13px; padding: 0; margin-bottom: 2px; }
.addr-set .field label { font-family: inherit; font-size: 13px; }
.opt { color: var(--soft); }
input.zip { max-width: 140px; }
select {
  min-height: 44px; padding: 8px 10px; border: 2px solid var(--ink); background: #fff; color: var(--ink);
  font: inherit; width: 100%; border-radius: 0;
}
.join-teaser { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.join-done { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.linkbtn { background: none; border: 0; padding: 0; min-height: 44px; font: inherit; font-size: 13px; color: var(--ink); text-decoration: underline; cursor: pointer; text-align: left; }
.linkbtn:hover { color: #6b3d14; }
.join-done p { margin: 0; }
.checkline { display: flex !important; align-items: center; gap: 10px; min-height: 44px; font-family: inherit !important; font-size: 15px !important; cursor: pointer; }
.checkline input { width: 22px; height: 22px; accent-color: var(--ink); }
details summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.addr { white-space: pre-line; }
[aria-invalid="true"] { border-color: #8a1c1c; box-shadow: inset 0 0 0 1px #8a1c1c; }
.narrow { max-width: 860px; margin: 0 auto; padding: 36px 24px 48px; display: flex; flex-direction: column; gap: 28px; }

/* boxes */
.box { border: 2px solid var(--ink); background: #fff; box-shadow: 5px 5px 0 var(--ink); }
.box-title { background: var(--ink); color: var(--paper); font-family: var(--pixel); font-size: 13px; padding: 7px 12px; margin: 0; font-weight: 400; text-transform: none; letter-spacing: 0; line-height: 1.55; }
.pad { padding: 18px; }
.logo-box { padding: 18px; display: flex; justify-content: center; }
.logo-box img { width: 100%; max-width: 190px; height: auto; display: block; }

/* nav */
.nav { display: flex; flex-direction: column; }
.nav a, .nav .off {
  min-height: 44px; padding: 10px 14px; text-decoration: none;
  border-bottom: 1px dashed var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.nav > :last-child { border-bottom: 0; }
.nav a[aria-current="page"] { font-weight: 700; background: var(--accent); border-bottom: 2px solid var(--ink); }
.nav .off { color: var(--muted); }
.tag { font-family: var(--pixel); font-size: 11px; border: 1px solid var(--ink); padding: 1px 5px; color: var(--ink); }
.pill {
  display: inline-block; background: var(--accent); border: 2px solid var(--ink); padding: 6px 10px;
  font-family: var(--display); font-weight: 700; font-size: 18px; text-transform: uppercase;
  letter-spacing: 0.04em; line-height: 1.2;
}

/* type */
h1, h2, h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; margin: 0; }
h1 { font-size: 52px; line-height: 0.98; letter-spacing: 0.02em; }
.h-section { font-size: 44px; line-height: 1; letter-spacing: 0.02em; }
.rule { height: 8px; width: 120px; background: var(--accent); border: 2px solid var(--ink); }
.label { font-family: var(--pixel); font-size: 13px; }
.small { font-size: 13px; color: var(--soft); }

/* buttons */
.btn {
  min-height: 44px; padding: 10px 16px; border: 2px solid var(--ink); background: var(--ink); color: var(--paper);
  text-decoration: none; font: inherit; font-weight: 700; display: inline-flex; align-items: center; cursor: pointer;
  box-shadow: 4px 4px 0 var(--accent);
}
.btn:hover { color: #fff; }
.btn.plain { background: #fff; color: var(--ink); box-shadow: none; }
.btn.small-btn { min-height: 44px; padding: 6px 12px; font-size: 14px; box-shadow: none; }
.btn[disabled] { opacity: 0.55; cursor: default; }
.sq { width: 44px; height: 44px; border: 2px solid var(--ink); background: #fff; color: var(--ink); font: inherit; font-weight: 700; font-size: 18px; cursor: pointer; }

/* hero */
.hero { padding: 28px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.hero-text { flex: 1 1 250px; min-width: 0; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.hero-text p { margin: 0; }
.hero-photo { flex: 1.8 1 340px; min-width: 0; }
.hero-photo img { width: 100%; height: auto; display: block; border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--accent); }
.lede { font-size: 17px; font-weight: 500; }

/* right now rows */
.rows { padding: 8px 24px 12px; display: flex; flex-direction: column; }
.row { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px dashed var(--ink); }
.row:last-child { border-bottom: 0; }
.row svg { flex: none; margin-top: 2px; }
.row-label { flex: 0 0 110px; font-family: var(--pixel); font-size: 12px; color: var(--muted); padding-top: 3px; }
.row-val { flex: 1 1 0; min-width: 0; overflow-wrap: anywhere; }

/* updates */
.updates { padding: 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 28px; align-items: start; }
.cal { display: flex; flex-direction: column; gap: 12px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.month { font-family: var(--display); font-weight: 700; font-size: 20px; text-transform: uppercase; letter-spacing: 0.04em; }
.dow, .days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.dow { font-family: var(--pixel); font-size: 12px; color: var(--muted); text-align: center; }
.day { min-height: 46px; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.day button {
  width: 100%; max-width: 44px; aspect-ratio: 1 / 1; padding: 0; border-radius: 50%;
  border: 2px solid var(--ink); background: var(--accent); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer;
}
.day button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--soft); }
.legend span { display: flex; align-items: center; gap: 6px; }
.dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); background: var(--accent); }
.dot.on { background: var(--ink); }
.entries { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.entry-date { font-family: var(--pixel); font-size: 13px; color: var(--muted); }
.entry { display: flex; flex-direction: column; gap: 12px; }
.entry-toggle {
  width: 100%; min-height: 44px; padding: 12px 14px; border: 2px solid var(--ink); background: #fff; color: var(--ink);
  font: inherit; font-weight: 700; font-size: 17px; text-align: left; cursor: pointer;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; box-shadow: 4px 4px 0 var(--accent);
}
.entry-toggle .more { font-family: var(--pixel); font-size: 12px; white-space: nowrap; padding-top: 4px; font-weight: 400; }
.entry-plain { margin: 0; font-weight: 700; font-size: 17px; overflow-wrap: anywhere; }
.entry-body { display: flex; flex-direction: column; gap: 14px; border-left: 2px dashed var(--ink); padding-left: 14px; }
.entry-body p { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(120px, 100%), 1fr)); gap: 10px; }
.thumbs button { padding: 0; border: 2px solid var(--ink); background: #fff; cursor: zoom-in; display: block; }
.thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }

/* lightbox */
dialog.lightbox { border: 2px solid var(--ink); padding: 0; background: #fff; max-width: min(94vw, 1100px); box-shadow: 6px 6px 0 var(--ink); }
dialog.lightbox::backdrop { background: rgba(17, 17, 17, 0.8); }
dialog.lightbox img { display: block; max-width: 100%; max-height: 80vh; margin: 0 auto; }
dialog.lightbox form { display: flex; justify-content: flex-end; padding: 8px; margin: 0; border-bottom: 2px solid var(--ink); }

/* cams */
.cams { padding: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 14px; }
.cam { aspect-ratio: 16 / 9; background: var(--ink); color: var(--paper); display: flex; flex-direction: column; justify-content: space-between; padding: 12px; }
.cam .name { font-family: var(--pixel); font-size: 12px; }
.cam .soon { align-self: flex-start; background: var(--accent); color: var(--ink); font-family: var(--pixel); font-size: 12px; padding: 2px 8px; }

/* footer */
.foot { border-top: 2px solid var(--ink); padding-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; font-size: 13px; }
.foot a { min-height: 44px; display: inline-flex; align-items: center; }

/* crew */
.crew { padding: 28px; display: flex; flex-direction: column; gap: 24px; }
.crew-head { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.crew-head.second { margin-top: 12px; }
.crew-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 22px; }
.card { border: 2px solid var(--ink); background: #fff; box-shadow: 4px 4px 0 var(--ink); display: flex; flex-direction: column; }
.card img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; display: block; border-bottom: 2px solid var(--ink); }
.card-text { padding: 14px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.card-text h3 { font-size: 26px; line-height: 1.1; }
.role { background: var(--accent); border: 2px solid var(--ink); padding: 2px 8px; font-family: var(--pixel); font-size: 12px; }

/* farm desk */
.desk-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.desk-head .who { display: flex; align-items: center; gap: 16px; }
.desk-head img { width: 72px; height: auto; display: block; }
.desk-head h1 { font-size: 40px; line-height: 1; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--pixel); font-size: 13px; }
input[type="text"], input[type="email"], input[type="password"], input[type="date"], textarea {
  min-height: 44px; padding: 8px 12px; border: 2px solid var(--ink); background: #fff; color: var(--ink); font: inherit; width: 100%;
}
input[type="date"] { max-width: 240px; }
textarea { resize: vertical; }
input[type="file"] { min-height: 44px; padding: 8px; border: 2px dashed var(--ink); background: var(--paper); color: var(--ink); font: inherit; width: 100%; }
.choice { display: flex; flex-wrap: wrap; gap: 12px; }
.choice button {
  min-height: 44px; padding: 8px 16px; border: 2px solid var(--ink); background: #fff; color: var(--ink);
  font-family: var(--display); font-weight: 700; font-size: 17px; text-transform: uppercase; letter-spacing: 0.04em; cursor: pointer;
}
.choice button[aria-pressed="true"] { background: var(--accent); }
.desk-rows { padding: 6px 18px 12px; display: flex; flex-direction: column; }
.desk-row { padding: 14px 0; border-bottom: 1px dashed var(--ink); display: flex; flex-direction: column; gap: 10px; }
.desk-row:last-child { border-bottom: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: flex; align-items: center; border: 2px solid var(--ink); background: var(--accent); max-width: 100%; }
.chip span { padding: 4px 4px 4px 10px; overflow-wrap: anywhere; }
.chip button { width: 44px; height: 44px; flex: none; border: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 700; font-size: 18px; cursor: pointer; }
.addline { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.addline input { flex: 1 1 220px; min-width: 0; width: auto; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.msg { font-size: 13px; color: var(--soft); min-height: 1.4em; }
.msg.bad { color: #8a1c1c; font-weight: 700; }
.old { display: flex; flex-direction: column; }
.old-item { padding: 14px 0; border-bottom: 1px dashed var(--ink); display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.old-item:last-child { border-bottom: 0; }
.old-item .what { flex: 1 1 260px; min-width: 0; overflow-wrap: anywhere; }
.keep { display: flex; flex-wrap: wrap; gap: 10px; }
.keep div { position: relative; border: 2px solid var(--ink); }
.keep img { width: 96px; height: 72px; object-fit: cover; display: block; }
.keep button { position: absolute; top: -2px; right: -2px; width: 44px; height: 44px; border: 2px solid var(--ink); background: #fff; font: inherit; font-weight: 700; cursor: pointer; }

@media (max-width: 520px) {
  h1 { font-size: 40px; }
  .h-section { font-size: 34px; }
  .row { flex-wrap: wrap; }
  .row-label { flex-basis: auto; }
  .row-val { flex-basis: 100%; }
}
