/* Yardfeet site: olive ink on parchment, square corners, double-line walls. */
:root {
  --parchment: #F8F3D9;
  --vellum: #EBE5C2;
  --sage: #B9B28A;
  --olive: #504B38;
  --head: "Avenir Next Condensed", "AvenirNextCondensed-DemiBold", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: Verdana, Geneva, "DejaVu Sans", sans-serif;
}
* { box-sizing: border-box; border-radius: 0; }
html { background: var(--parchment); }
body {
  margin: 0;
  color: var(--olive);
  font: 15px/1.65 var(--body);
  background-color: var(--parchment);
  background-image:
    linear-gradient(rgba(185,178,138,.45) 1px, transparent 1px),
    linear-gradient(90deg, rgba(185,178,138,.45) 1px, transparent 1px),
    linear-gradient(rgba(185,178,138,.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(185,178,138,.2) 1px, transparent 1px);
  background-size: 60px 60px, 60px 60px, 12px 12px, 12px 12px;
}
a { color: var(--olive); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible { outline: 3px double var(--olive); outline-offset: 3px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--olive); color: var(--parchment); padding: 8px 12px; }

h1, h2, h3, .stamp, .lettering {
  font-family: var(--head);
  font-style: italic;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.1;
}
h1 { font-size: clamp(2.6rem, 11vw, 4.2rem); margin: 0; }
h2 { font-size: 1.7rem; margin: 0 0 .6rem; }
h3 { font-size: 1.25rem; margin: 0 0 .3rem; }

/* Double wall: thick outer line, thin inner line. */
.wall {
  border: 3px solid var(--olive);
  outline: 1px solid var(--olive);
  outline-offset: -8px;
  background: rgba(248,243,217,.94);
  padding: 22px 20px;
}
.sheet { max-width: 980px; margin: 0 auto; padding: 18px 14px 40px; }

.drawing-head { display: grid; gap: 14px; margin-bottom: 18px; }
.drawing-head p { margin: .3rem 0 0; }
.plan-art { width: 100%; max-width: 300px; height: auto; display: block; }

.dim {
  display: flex; align-items: center; gap: 8px;
  font-size: .8rem; letter-spacing: .04em; margin: 14px 0;
}
.dim::before, .dim::after { content: ""; flex: 1; border-top: 1px solid var(--olive); }
.dim::before { border-left: 1px solid var(--olive); height: 10px; border-top-width: 1px; }

nav.legend ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
nav.legend a {
  display: inline-block; padding: 8px 12px; min-height: 44px; line-height: 28px;
  border: 2px solid var(--olive); background: var(--vellum); text-decoration: none;
  font-family: var(--head); font-style: italic; font-weight: 600;
}
nav.legend a[aria-current="page"] { background: var(--olive); color: var(--parchment); }

/* Floor plan of rooms: one grid, shared walls. */
.floor { display: grid; grid-template-columns: 1fr; border: 4px solid var(--olive); margin: 20px 0; }
.room { padding: 20px 18px; border: 1px solid var(--olive); position: relative; background: rgba(248,243,217,.9); }
.room .tag { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; font-weight: bold; }
.room.garden { background-image: repeating-linear-gradient(45deg, rgba(185,178,138,.35) 0 1px, transparent 1px 11px); }
.room ol { padding-left: 1.2rem; margin: .4rem 0 0; }

.faq details { border-top: 1px solid var(--sage); padding: 12px 0; }
.faq details:first-of-type { border-top: 0; }
.faq summary { cursor: pointer; font-weight: bold; min-height: 32px; }
.faq p { margin: .5rem 0 0; }

.titleblock { display: grid; grid-template-columns: 1fr; border: 3px solid var(--olive); margin-top: 22px; }
.titleblock div { padding: 10px 14px; border: 1px solid var(--olive); }
.titleblock dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; font-weight: bold; }
.titleblock dd { margin: 0; font-family: var(--head); font-style: italic; font-weight: 600; font-size: 1.2rem; }
.inked { background: var(--olive); color: var(--parchment); }
.inked a { color: var(--parchment); }

/* Privacy page: a specification schedule. */
.schedule { width: 100%; border-collapse: collapse; margin: 10px 0; border: 3px double var(--olive); }
.schedule th, .schedule td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--olive); }
.schedule th { background: var(--vellum); font-family: var(--head); font-style: italic; font-size: 1.05rem; }
.clauses { counter-reset: clause; list-style: none; padding: 0; margin: 0; }
.clauses > li { counter-increment: clause; padding: 16px 0 16px 58px; border-bottom: 1px solid var(--sage); position: relative; }
.clauses > li::before {
  content: "P-" counter(clause, decimal-leading-zero);
  position: absolute; left: 0; top: 18px; width: 48px; text-align: center;
  font-family: var(--head); font-style: italic; font-weight: 600; border: 2px solid var(--olive); padding: 2px 0;
}
.stamp {
  display: inline-block; border: 3px double var(--olive); padding: 6px 14px; transform: rotate(-3deg);
  font-size: 1.1rem; margin-top: 10px;
}
footer { font-size: .8rem; text-align: center; margin-top: 26px; }

@media (min-width: 720px) {
  .sheet { padding: 34px 26px 60px; }
  .drawing-head { grid-template-columns: 1.5fr 1fr; align-items: center; }
  .floor { grid-template-columns: 3fr 2fr; }
  .floor .wide { grid-column: 1 / -1; }
  .titleblock { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: no-preference) {
  .plan-art path { stroke-dasharray: 900; stroke-dashoffset: 900; animation: ink 2.2s ease-out forwards; }
  @keyframes ink { to { stroke-dashoffset: 0; } }
}
