:root {
  --sand: #E9D5A5;
  --ink: #2A1B12;
  --teal: #135E60;
  --walnut: #3A261A;
  --leaf: #5B7A3C;

  --s-small: 19px;
  --s-body: 21px;
  --s-lead: 26px;
  --s-h3: 30px;
  --s-h2: 44px;
  --s-h1: 62px;

  --pad: 56px;
  --serif: "Marcellus", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Alegreya Sans", "Trebuchet MS", Verdana, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--s-body);
  line-height: 1.55;
  font-synthesis: none;
}

h1, h2, p, ul, figure, address { margin: 0; padding: 0; }
ul { list-style: none; }
address { font-style: normal; }

h1, h2, .board-name, .frame-title, .foot-name {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
}

a { color: inherit; }
p { max-width: 62ch; }
.banner { max-width: none; }
.foot a { display: inline-block; padding: 12px 0; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}
.hero-right a:focus-visible, .place a:focus-visible, .foot a:focus-visible,
.banner a:focus-visible, .callbar:focus-visible {
  outline-color: var(--sand);
}

/* banner */
.banner {
  background: var(--teal);
  color: var(--sand);
  font-size: var(--s-small);
  font-weight: 700;
  line-height: 1.4;
  padding: 10px var(--pad);
}

/* buttons */
.btn {
  display: inline-block;
  background: var(--teal);
  color: var(--sand);
  font-family: var(--sans);
  font-size: var(--s-lead);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  padding: 16px 30px;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}
.btn:hover { background: var(--ink); }

/* hero: two boards joined by a dovetail */
.hero {
  display: grid;
  grid-template-columns: 1fr 72px 1fr;
  background: var(--walnut);
  color: var(--sand);
  min-height: 800px;
}

.hero-left {
  background: var(--sand);
  color: var(--ink);
  position: relative;
  display: flex;
  flex-direction: column;
  padding-right: 24px;
  overflow: hidden;
}
.hero-left::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22480%22 height=%22400%22 viewBox=%220 0 480 400%22%3E%3Cpath d=%22M0 30 C150 29 330 31 480 30%22 fill=%22none%22 stroke=%22%232A1B12%22 stroke-width=%221.5%22 opacity=%220.1%22/%3E%3Cpath d=%22M0 58 C150 60 330 56 480 58%22 fill=%22none%22 stroke=%22%232A1B12%22 stroke-width=%222.3%22 opacity=%220.1%22/%3E%3Cpath d=%22M0 71 C150 76 330 66 480 71%22 fill=%22none%22 stroke=%22%232A1B12%22 stroke-width=%223.1%22 opacity=%220.1%22/%3E%3Cpath d=%22M0 112 C150 120 330 104 480 112%22 fill=%22none%22 stroke=%22%232A1B12%22 stroke-width=%221.5%22 opacity=%220.1%22/%3E%3Cpath d=%22M0 140 C150 134 330 146 480 140%22 fill=%22none%22 stroke=%22%232A1B12%22 stroke-width=%222.3%22 opacity=%220.1%22/%3E%3Cpath d=%22M0 166 C150 163 330 169 480 166%22 fill=%22none%22 stroke=%22%232A1B12%22 stroke-width=%223.1%22 opacity=%220.1%22/%3E%3Cpath d=%22M0 201 C150 201 330 201 480 201%22 fill=%22none%22 stroke=%22%232A1B12%22 stroke-width=%221.5%22 opacity=%220.1%22/%3E%3Cpath d=%22M0 239 C150 242 330 236 480 239%22 fill=%22none%22 stroke=%22%232A1B12%22 stroke-width=%222.3%22 opacity=%220.1%22/%3E%3Cpath d=%22M0 262 C150 268 330 256 480 262%22 fill=%22none%22 stroke=%22%232A1B12%22 stroke-width=%223.1%22 opacity=%220.1%22/%3E%3Cpath d=%22M0 298 C150 290 330 306 480 298%22 fill=%22none%22 stroke=%22%232A1B12%22 stroke-width=%221.5%22 opacity=%220.1%22/%3E%3Cpath d=%22M0 330 C150 325 330 335 480 330%22 fill=%22none%22 stroke=%22%232A1B12%22 stroke-width=%222.3%22 opacity=%220.1%22/%3E%3Cpath d=%22M0 372 C150 370 330 374 480 372%22 fill=%22none%22 stroke=%22%232A1B12%22 stroke-width=%223.1%22 opacity=%220.1%22/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-left > * { position: relative; }

.sign { color: var(--walnut); align-self: flex-start; max-width: 100%; }
.chains { display: block; width: 100%; height: 40px; }
.board {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--walnut);
  color: var(--sand);
  padding: 20px 28px 20px 28px;
  border-radius: 0 6px 6px 0;
}
.crown-mark { width: 62px; height: 54px; flex: none; }
.board-name { font-size: 23px; }
@media (min-width: 1380px) { .board-name { white-space: nowrap; } }

.hero-copy { padding: 52px 24px 0 var(--pad); }
h1 {
  font-size: var(--s-h1);
  max-width: 11em;
}
.lead { font-size: var(--s-lead); line-height: 1.4; margin-top: 22px; max-width: 26em; }
.hero-copy .btn { margin-top: 32px; }

.tree {
  display: block;
  width: min(540px, 88%);
  height: auto;
  margin: auto 0 0 auto;
  padding-top: 24px;
  color: var(--ink);
}

.seam { background: var(--walnut); }
.seam svg { display: block; }
.seam-v svg { height: 100%; }
.seam-h { display: none; }

.hero-right {
  position: relative;
  padding: 196px var(--pad) 48px 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: var(--walnut);
}
.hero-right::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22480%22 height=%22400%22 viewBox=%220 0 480 400%22%3E%3Cpath d=%22M0 30 C150 29 330 31 480 30%22 fill=%22none%22 stroke=%22%23E9D5A5%22 stroke-width=%221.5%22 opacity=%220.09%22/%3E%3Cpath d=%22M0 58 C150 60 330 56 480 58%22 fill=%22none%22 stroke=%22%23E9D5A5%22 stroke-width=%222.3%22 opacity=%220.09%22/%3E%3Cpath d=%22M0 71 C150 76 330 66 480 71%22 fill=%22none%22 stroke=%22%23E9D5A5%22 stroke-width=%223.1%22 opacity=%220.09%22/%3E%3Cpath d=%22M0 112 C150 120 330 104 480 112%22 fill=%22none%22 stroke=%22%23E9D5A5%22 stroke-width=%221.5%22 opacity=%220.09%22/%3E%3Cpath d=%22M0 140 C150 134 330 146 480 140%22 fill=%22none%22 stroke=%22%23E9D5A5%22 stroke-width=%222.3%22 opacity=%220.09%22/%3E%3Cpath d=%22M0 166 C150 163 330 169 480 166%22 fill=%22none%22 stroke=%22%23E9D5A5%22 stroke-width=%223.1%22 opacity=%220.09%22/%3E%3Cpath d=%22M0 201 C150 201 330 201 480 201%22 fill=%22none%22 stroke=%22%23E9D5A5%22 stroke-width=%221.5%22 opacity=%220.09%22/%3E%3Cpath d=%22M0 239 C150 242 330 236 480 239%22 fill=%22none%22 stroke=%22%23E9D5A5%22 stroke-width=%222.3%22 opacity=%220.09%22/%3E%3Cpath d=%22M0 262 C150 268 330 256 480 262%22 fill=%22none%22 stroke=%22%23E9D5A5%22 stroke-width=%223.1%22 opacity=%220.09%22/%3E%3Cpath d=%22M0 298 C150 290 330 306 480 298%22 fill=%22none%22 stroke=%22%23E9D5A5%22 stroke-width=%221.5%22 opacity=%220.09%22/%3E%3Cpath d=%22M0 330 C150 325 330 335 480 330%22 fill=%22none%22 stroke=%22%23E9D5A5%22 stroke-width=%222.3%22 opacity=%220.09%22/%3E%3Cpath d=%22M0 372 C150 370 330 374 480 372%22 fill=%22none%22 stroke=%22%23E9D5A5%22 stroke-width=%223.1%22 opacity=%220.09%22/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-right > * { position: relative; }
.hero-right h2 { font-size: var(--s-h1); }

/* the one photo frame, with mitred corners */
.frame {
  position: relative;
  margin-top: 40px;
  padding: 22px;
  max-width: 460px;
  background: var(--sand);
  color: var(--sand);
}
.miter {
  position: absolute;
  width: 22px;
  height: 22px;
}
.m1 { top: 0; left: 0;
  background: linear-gradient(to top right, transparent calc(50% - 1.5px), var(--walnut) calc(50% - 1.5px) calc(50% + 1.5px), transparent calc(50% + 1.5px)); }
.m2 { top: 0; right: 0;
  background: linear-gradient(to top left, transparent calc(50% - 1.5px), var(--walnut) calc(50% - 1.5px) calc(50% + 1.5px), transparent calc(50% + 1.5px)); }
.m3 { bottom: 0; left: 0;
  background: linear-gradient(to bottom right, transparent calc(50% - 1.5px), var(--walnut) calc(50% - 1.5px) calc(50% + 1.5px), transparent calc(50% + 1.5px)); }
.m4 { bottom: 0; right: 0;
  background: linear-gradient(to bottom left, transparent calc(50% - 1.5px), var(--walnut) calc(50% - 1.5px) calc(50% + 1.5px), transparent calc(50% + 1.5px)); }
.frame-in {
  background: var(--walnut);
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  gap: 10px;
}
.tools { display: block; width: 100%; max-width: 480px; height: auto; margin-top: 44px; }
.frame-title { font-size: var(--s-h3); }

/* two jobs */
.jobs {
  display: grid;
  grid-template-columns: 1fr 36px 1fr;
  gap: 0;
  padding: 72px var(--pad);
  column-gap: 40px;
}
.job {
  display: grid;
  grid-template-columns: 230px 1fr;
  grid-template-rows: auto auto;
  column-gap: 32px;
  align-content: center;
  align-items: center;
}
.job .art { grid-row: 1 / 3; width: 230px; height: auto; color: var(--ink); }
.job h2 { font-size: var(--s-h2); align-self: end; }
.job p { align-self: start; margin-top: 12px; max-width: 18em; }
.seam-mini { background: var(--walnut); }
.seam-mini svg { display: block; height: 100%; }

/* address on the sign */
.place {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 64px;
  background: var(--teal);
  color: var(--sand);
  padding: 56px var(--pad);
}
.place h2 { font-size: var(--s-h2); max-width: none; }
.place address { font-size: 28px; line-height: 1.4; }

/* form */
.ask {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  padding: 80px var(--pad);
  align-items: start;
}
.ask h2 { font-size: var(--s-h2); }
.ask-text p { margin-top: 16px; max-width: 24em; }
.demo-tag {
  display: inline-block;
  color: var(--teal);
  border: 2px solid var(--teal);
  border-radius: 4px;
  font-size: var(--s-small);
  font-weight: 700;
  padding: 2px 12px;
  line-height: 1.5;
}
.ask-text .demo-tag { margin-top: 20px; }
.ask-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
  max-width: 720px;
}
.wide { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
label { font-size: var(--s-small); font-weight: 700; }
input, textarea {
  font-family: var(--sans);
  font-size: var(--s-body);
  color: var(--ink);
  background: transparent;
  border: 3px solid var(--ink);
  border-radius: 4px;
  padding: 11px 14px;
  width: 100%;
}
textarea { resize: vertical; }
.actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

/* footer */
.foot { background: var(--walnut); color: var(--sand); }
.foot-in {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px 48px;
  padding: 44px var(--pad) 40px;
}
.foot-name { font-size: var(--s-h3); }
.foot ul { display: flex; flex-wrap: wrap; gap: 8px 36px; font-size: var(--s-body); }
.ends { display: block; border-top: 3px solid var(--ink); }

.callbar { display: none; }

/* narrower */
@media (max-width: 1100px) {
  :root { --pad: 36px; --s-h1: 50px; --s-h2: 38px; }
  .job { grid-template-columns: 1fr; }
  .job .art { grid-row: auto; width: 200px; margin-bottom: 14px; }
  .ask { grid-template-columns: 1fr; gap: 36px; }
}

/* phone and tablet: boards stacked, seam turned sideways */
@media (max-width: 860px) {
  :root { --pad: 20px; --s-body: 19px; --s-lead: 23px; --s-h3: 26px; --s-h2: 34px; --s-h1: 40px; }
  .foot { padding-bottom: 76px; }
  .banner { padding: 10px var(--pad); }

  .hero { grid-template-columns: 1fr; min-height: 0; }
  .seam-v { display: none; }
  .seam-h { display: block; }
  .seam-h svg { width: 100%; height: 72px; }

  .hero-left { padding-right: 0; }
  .chains { height: 28px; }
  .board { padding: 14px 20px 14px 16px; gap: 14px; }
  .crown-mark { width: 46px; height: 40px; }
  .board-name { font-size: 21px; }
  .hero-copy { padding: 30px var(--pad) 0; }
  .tree { width: min(340px, 86%); margin: 12px auto 0 auto; padding-top: 12px; }
  .hero-left { padding-bottom: 0; }

  .hero-right { padding: 24px var(--pad) 40px; }
  .frame { margin-top: 28px; }
  .frame-in { min-height: 220px; }

  .jobs { grid-template-columns: 1fr; padding: 40px var(--pad); row-gap: 28px; }
  .seam-mini { height: 36px; }
  .seam-mini svg { display: none; }
  .seam-mini {
    height: 14px;
    background:
      repeating-linear-gradient(90deg, var(--walnut) 0 28px, transparent 28px 44px);
  }
  .job { grid-template-columns: 130px 1fr; column-gap: 18px; }
  .job .art { width: 130px; margin: 0; grid-row: 1 / 3; }

  .place { padding: 40px var(--pad); }
  .place address { font-size: 24px; }
  .ask { padding: 44px var(--pad); }
  .ask-form { grid-template-columns: 1fr; }
  .foot-in { padding: 32px var(--pad); }
  .foot ul { flex-direction: column; gap: 8px; }

  .callbar {
    display: block;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 10;
    background: var(--teal);
    color: var(--sand);
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    padding: 18px 16px;
    border-top: 3px solid var(--sand);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
