/* Neighborhood Web Design. One stylesheet, no scripts, one self-hosted font. */

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f8f2e7;
  --paper-deep: #efe5d3;
  --ink: #1d2721;
  --ink-soft: #46524a;
  --awning: #1e5a47;
  --awning-dark: #153f32;
  --tomato: #c8412b;
  --mustard: #e8b54a;
  --rule: #d9ccb4;
  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  --measure: 38rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
}

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

a {
  color: var(--awning);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--tomato);
}

:focus-visible {
  outline: 3px solid var(--tomato);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--ink);
  color: var(--paper);
  z-index: 10;
}

.skip:focus {
  left: 0.5rem;
}

.wrap {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* --- the awning ------------------------------------------------------------------------ */

.awning {
  height: 2.75rem;
  background: repeating-linear-gradient(
    90deg,
    var(--awning) 0 2.75rem,
    var(--paper) 2.75rem 5.5rem
  );
  -webkit-mask: radial-gradient(1.375rem at 50% 100%, #0000 98%, #000) 0 0 / 2.75rem 100%;
  mask: radial-gradient(1.375rem at 50% 100%, #0000 98%, #000) 0 0 / 2.75rem 100%;
}

/* --- header ------------------------------------------------------------------------------ */

.site-header {
  background: var(--awning);
  color: var(--paper);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.wordmark {
  font: 700 1.25rem/1.1 var(--display);
  letter-spacing: -0.01em;
  color: var(--paper);
  text-decoration: none;
}

.wordmark span {
  display: block;
  font: 600 0.6875rem/1.4 var(--body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mustard);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  color: var(--paper);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--mustard);
  text-decoration: underline;
}

/* --- hero -------------------------------------------------------------------------------- */

.hero {
  padding: clamp(3rem, 9vw, 6.5rem) 0 clamp(2.5rem, 7vw, 5rem);
}

.hero .wrap {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 60rem) {
  .hero .wrap {
    grid-template-columns: 1.35fr 1fr;
  }
}

.kicker {
  margin: 0 0 1rem;
  font: 700 0.8125rem/1.4 var(--body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tomato);
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 6.4vw, 4.25rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.875rem, 4.5vw, 2.875rem);
}

h3 {
  font-size: 1.375rem;
  line-height: 1.2;
}

h1 em,
h2 em {
  font-style: italic;
  font-weight: 600;
  color: var(--awning);
}

.lede {
  max-width: var(--measure);
  font-size: clamp(1.125rem, 2.2vw, 1.3125rem);
  color: var(--ink-soft);
  margin: 0 0 2rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

.button {
  display: inline-block;
  padding: 0.875rem 1.375rem;
  border-radius: 999px;
  background: var(--tomato);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 0 var(--ink);
}

.button:hover {
  background: #a93421;
  color: #fff;
}

.button.quiet {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}

.button.quiet:hover {
  background: var(--ink);
  color: var(--paper);
}

/* The chalkboard: what a restaurant's site has to get right. */
.board {
  position: relative;
  padding: 1.75rem 1.75rem 1.5rem;
  border-radius: 0.75rem;
  background: var(--ink);
  color: var(--paper);
  box-shadow:
    0 0 0 0.5rem #6b4f32,
    0 1.25rem 2.5rem -1rem rgb(29 39 33 / 0.55);
  transform: rotate(-1.2deg);
}

.board h2 {
  font-size: 1.5rem;
  color: var(--mustard);
  margin-bottom: 0.75rem;
}

.board ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.board li {
  padding: 0.5rem 0 0.5rem 1.75rem;
  border-top: 1px dashed rgb(248 242 231 / 0.25);
  position: relative;
}

.board li::before {
  content: "✓";
  position: absolute;
  left: 0.25rem;
  color: var(--mustard);
  font-weight: 700;
}

/* --- sections ------------------------------------------------------------------------------ */

.section {
  padding: clamp(3rem, 8vw, 5.5rem) 0;
}

.section.tinted {
  background: var(--paper-deep);
}

.section.dark {
  background: var(--awning-dark);
  color: var(--paper);
}

.section.dark a {
  color: var(--mustard);
}

.section-head {
  max-width: 44rem;
  margin-bottom: 2.5rem;
}

.section-head p {
  color: var(--ink-soft);
  margin: 0;
}

.dark .section-head p {
  color: rgb(248 242 231 / 0.82);
}

.steps {
  display: grid;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

@media (min-width: 52rem) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.steps li {
  counter-increment: step;
  padding-top: 1.25rem;
  border-top: 3px solid var(--ink);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 0.5rem;
  font: 800 2.5rem/1 var(--display);
  color: var(--tomato);
}

.steps p {
  margin: 0;
  color: var(--ink-soft);
}

/* The menu: what the monthly plan includes, set like a printed menu. */
.menu {
  max-width: 46rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}

.menu .item {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font: 700 1.25rem/1.3 var(--display);
}

.menu .item::after {
  content: "";
  flex: 1;
  order: 1;
  border-bottom: 2px dotted var(--ink-soft);
  transform: translateY(-0.3em);
}

.menu .included {
  order: 2;
  font: 700 0.75rem/1 var(--body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--awning);
  white-space: nowrap;
}

.menu p {
  margin: 0.25rem 0 0;
  color: var(--ink-soft);
}

.menu-note {
  max-width: 46rem;
  margin: 1.5rem 0 0;
  font-style: italic;
  color: var(--ink-soft);
}

.cards {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 44rem) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  padding: 1.5rem;
  border-radius: 0.75rem;
  background: rgb(248 242 231 / 0.06);
  box-shadow: inset 0 0 0 1px rgb(248 242 231 / 0.18);
}

.card h3 {
  color: var(--mustard);
  margin-bottom: 0.5rem;
}

.card p {
  margin: 0;
}

.bilingual {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 52rem) {
  .bilingual {
    grid-template-columns: 1fr 1fr;
  }
}

.pair {
  margin: 0;
  padding: 1.5rem;
  border-left: 4px solid var(--tomato);
  background: var(--paper-deep);
  font: 600 1.25rem/1.4 var(--display);
}

.pair span {
  display: block;
}

.pair span + span {
  margin-top: 0.5rem;
  color: var(--awning);
  font-style: italic;
}

.contact {
  text-align: center;
}

.contact .lede {
  margin-left: auto;
  margin-right: auto;
}

.contact .email {
  display: inline-block;
  margin-top: 0.5rem;
  font: 700 clamp(1.0625rem, 4.6vw, 2.25rem)/1.2 var(--display);
  overflow-wrap: anywhere;
}

/* --- prose pages ------------------------------------------------------------------------------ */

.prose {
  max-width: var(--measure);
  padding: clamp(2.5rem, 7vw, 4.5rem) 0 clamp(3rem, 8vw, 5rem);
}

.prose h1 {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
}

.prose h2 {
  font-size: 1.625rem;
  margin-top: 2.5rem;
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.prose strong {
  color: var(--ink);
}

.callout {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-radius: 0.5rem;
  background: var(--paper-deep);
  border-left: 4px solid var(--awning);
}

.callout p {
  margin: 0;
  color: var(--ink);
}

/* --- footer ------------------------------------------------------------------------------ */

.site-footer {
  padding: 2.5rem 0;
  background: var(--ink);
  color: rgb(248 242 231 / 0.8);
  font-size: 0.9375rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
}

.site-footer p {
  margin: 0;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: var(--paper);
}

@media (prefers-reduced-motion: no-preference) {
  .button {
    transition:
      background-color 0.15s,
      color 0.15s;
  }
}

.prose .kicker {
  color: var(--tomato);
}

/* --- examples ----------------------------------------------------------------------------- */

.examples {
  display: grid;
  gap: 2rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 44rem) {
  .examples {
    grid-template-columns: repeat(2, 1fr);
  }
}

.example a {
  display: grid;
  gap: 0.25rem;
  color: var(--ink);
  text-decoration: none;
}

.example img {
  width: 100%;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  object-position: top;
  margin-bottom: 0.75rem;
  border-radius: 0.5rem;
  box-shadow:
    0 0 0 1px var(--rule),
    0 0.75rem 1.5rem -0.75rem rgb(29 39 33 / 0.35);
}

.example-name {
  font: 700 1.375rem/1.2 var(--display);
}

.example-kind {
  color: var(--ink-soft);
}

.example-tag {
  justify-self: start;
  padding: 0.125rem 0.625rem;
  border-radius: 999px;
  background: var(--awning);
  color: var(--paper);
  font-size: 0.8125rem;
  font-weight: 600;
}

.example-link {
  margin-top: 0.25rem;
  color: var(--tomato);
  font-weight: 700;
}

.example a:hover .example-name,
.example a:focus-visible .example-name {
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}
