/* Wonderfield Works: a field book. Yellow cover, ruled page inside. */
:root {
  --cover: #e9b42e;
  --ink: #15222b;
  --page: #f3f5f2;
  --rule: #b9cec6;
  --muted: #4e5e67;
  --flag: #e5397b;
  --measure: 72rem;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  font-family: "Archivo", system-ui, sans-serif;
  font-variation-settings: "wdth" 100;
  color: var(--ink);
  background: var(--page);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-size: 1.0625rem; line-height: 1.55; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

/* Cover */
.cover {
  background: var(--cover);
  border-bottom: 6px solid var(--ink);
}
.cover-inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(3rem, 9vw, 7.5rem) var(--gutter) clamp(2.5rem, 6vw, 4.5rem);
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "mark mark"
    "lede label";
  align-items: end;
  gap: clamp(2rem, 5vw, 3.5rem) 2rem;
}
.wordmark {
  grid-area: mark;
  margin: 0;
  font-size: clamp(2.4rem, 12vw, 10rem);
  font-weight: 800;
  font-variation-settings: "wdth" 125;
  line-height: 0.84;
  letter-spacing: -0.015em;
}
.wordmark span { display: block; }
.lede {
  grid-area: lede;
  margin: 0;
  max-width: 26ch;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.3;
  font-weight: 500;
}

/* The label printed on a field book's cover */
.label {
  grid-area: label;
  margin: 0;
  min-width: 19rem;
  background: #fffdf6;
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: 0.35rem 1rem;
}
.label div {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  align-items: baseline;
  padding: 0.45rem 0;
}
.label div + div { border-top: 1px solid var(--ink); }
.label dt { font-size: 0.8125rem; color: var(--muted); }
.label dd { margin: 0; font-weight: 600; }
.label a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* Ruled page */
.page {
  background-image:
    linear-gradient(to right, rgb(185 206 198 / 0.35) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(185 206 198 / 0.35) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: center top;
}
.log {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) var(--gutter) clamp(3rem, 7vw, 5rem);
}
.log h2 {
  margin: 0 0 1.25rem;
  font-size: 1.125rem;
  font-weight: 700;
  font-variation-settings: "wdth" 112;
}
.properties {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--ink);
  background: var(--page);
}
.property {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 8.5rem;
  align-items: center;
  gap: 0.5rem 1.75rem;
  padding: 1.6rem 0.75rem;
  border-bottom: 1px solid var(--rule);
}
.property:last-child { border-bottom: 2px solid var(--ink); }
.mark { width: 44px; height: 44px; object-fit: contain; }
.body h3 {
  margin: 0;
  font-size: clamp(1.3rem, 2.3vw, 1.65rem);
  line-height: 1.2;
  font-weight: 700;
  font-variation-settings: "wdth" 108;
}
.body h3 a { text-decoration: none; }
/* The whole row opens the site. */
.body h3 a::after { content: ""; position: absolute; inset: 0; }
.body h3 a:focus-visible { outline: none; }
.property:has(a:focus-visible) { outline: 3px solid var(--ink); outline-offset: -3px; }
.body p { margin: 0.3rem 0 0; color: var(--muted); max-width: 62ch; }
.property:hover { background: #fff; }
.property:hover h3 a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

.body .address {
  margin-top: 0.45rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.status {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
}
.status::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  background: var(--ink);
}
/* Surveyor's flagging tape marks what isn't built yet. */
.status.is-soon::before {
  width: 0.95rem;
  background: var(--flag);
  clip-path: polygon(0 0, 100% 0, 72% 50%, 100% 100%, 0 100%);
}

.foot {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter) 3rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  font-size: 0.9375rem;
  color: var(--muted);
}
.foot p { margin: 0; }

@media (max-width: 52rem) {
  .cover-inner {
    grid-template-columns: 1fr;
    grid-template-areas: "mark" "lede" "label";
  }
  .label { min-width: 0; max-width: 24rem; }
  .property {
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: start;
    gap: 0.6rem 1.1rem;
    padding: 1.4rem 0.25rem;
  }
  .status { grid-column: 2; }
}
