/* danhewison.com
   Colour: green for the garden pages, brown for the dining pages. The two meet on Home.
   Type: Libre Caslon for headings and text, Alegreya Sans for menus, buttons and small text. */

:root {
  color-scheme: light;

  --stone: #EDEEE7;
  --grass: #E1E4D8;
  --husk: #E9E2D5;
  --canopy: #20382B;
  --cacao: #3B2A20;
  --soil: #1E1813;

  --ink: #2A221C;
  --muted: #5B544B;
  --moss: #4A6340;
  --on-canopy: #EEF0E6;
  --on-canopy-soft: #D5DCCB;
  --on-cacao: #F2ECE2;
  --on-cacao-soft: #DCCFBC;
  --on-soil: #E9E4DA;
  --on-soil-soft: #B9B0A3;

  --display: 'Libre Caslon Display', 'Libre Caslon Text', Georgia, 'Times New Roman', serif;
  --text: 'Libre Caslon Text', Georgia, 'Times New Roman', serif;
  --sans: 'Alegreya Sans', 'Gill Sans', 'Trebuchet MS', sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --line: #C9CDBD;
}

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

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

body {
  margin: 0;
  background: var(--soil);
  color: var(--ink);
  font-family: var(--text);
  font-size: 18px;
  line-height: 1.7;
}

h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; transition: opacity .15s ease; }
a:hover { opacity: .72; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.wrap { max-width: calc(1200px + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
.measure { max-width: 34em; }

/* Header */

.site-header { background: var(--stone); border-bottom: 1px solid #D3D6C9; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; padding-block: 18px; }
.wordmark { padding: 5px 0; font-family: var(--display); font-size: 28px; line-height: 1.2; color: var(--canopy); text-decoration: none; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 30px; font-family: var(--sans); line-height: 1.3; }
.site-nav a { padding: 11px 0; text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--canopy); box-shadow: inset 0 -1px 0 var(--canopy); }
.site-nav .nav-cta { padding: 10px 18px; border: 1px solid var(--canopy); border-radius: 3px; color: var(--canopy); font-weight: 500; }

/* Buttons and links */

.btn { display: inline-block; padding: 15px 28px; border-radius: 3px; background: var(--canopy); color: var(--on-canopy); font-family: var(--sans); line-height: 1.3; font-weight: 500; text-decoration: none; }
.btn--light { background: var(--stone); color: var(--canopy); }
.band--cacao .btn--light { background: var(--on-cacao); color: var(--cacao); }
.text-link { display: inline-block; padding: 11px 0; font-family: var(--sans); line-height: 1.3; font-weight: 500; text-decoration: underline; text-underline-offset: 5px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }

/* Bands of colour */

main { background: var(--stone); }
.band { padding-block: 96px; }
.band--stone { background: var(--stone); }
.band--grass { background: var(--grass); --line: #B9C0AC; }
.band--husk { background: var(--husk); --line: #CFC4B0; }
.band--canopy { background: var(--canopy); color: var(--on-canopy); --line: #45604F; }
.band--cacao { background: var(--cacao); color: var(--on-cacao); --line: #5E4838; }
.band--canopy .soft { color: var(--on-canopy-soft); }
.band--cacao .soft { color: var(--on-cacao-soft); }
.stack { display: flex; flex-direction: column; gap: 40px; }

/* Headings */

.h-page { font-size: clamp(44px, 6vw, 84px); line-height: 1.02; letter-spacing: -0.01em; }
.h-section { font-size: clamp(32px, 3.4vw, 46px); line-height: 1.1; }
.h-item { font-size: clamp(27px, 2.6vw, 32px); line-height: 1.15; }
.band--stone .h-page, .band--stone .h-section, .band--stone .h-item,
.band--grass .h-page, .band--grass .h-section, .band--grass .h-item { color: var(--canopy); }
.band--husk .h-section, .band--husk .h-item { color: var(--cacao); }
.lede { font-size: 21px; line-height: 1.55; }

/* Photos. A slot shows nothing until a photo is added. */

.photo { margin: 0; overflow: hidden; }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo--tall { aspect-ratio: 4 / 5; }
.photo--wide { aspect-ratio: 5 / 2; }

/* Home: opening */

.hero { padding-block: clamp(72px, 9vw, 128px); }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 56px 64px; }
.hero__text { flex: 1.25 1 440px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.hero__title { max-width: 13em; font-size: clamp(40px, 6.4vw, 92px); line-height: 1.03; letter-spacing: -0.01em; color: var(--canopy); }
.hero__text .lede { max-width: 30em; }
.hero__text .actions { margin-top: 8px; }
.hero .photo { flex: 1 1 380px; min-width: 0; }

/* Home: introduction and the three places */

.intro .wrap { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px 96px; }
.intro__text { flex: 1.2 1 420px; min-width: 0; font-size: clamp(22px, 2.1vw, 28px); line-height: 1.5; color: var(--canopy); }
.places { flex: 1 1 340px; min-width: 0; list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.places li { padding: 20px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.places strong { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.25; color: var(--canopy); }
.places span { font-family: var(--sans); line-height: 1.45; color: #474C3D; }

/* Home: the two doorways */

.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }
.door { padding: clamp(72px, 8vw, 120px) var(--gutter); display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.door--garden { background: var(--canopy); color: var(--on-canopy); padding-left: max(var(--gutter), calc((100vw - 1200px) / 2)); }
.door--dining { background: var(--cacao); color: var(--on-cacao); padding-right: max(var(--gutter), calc((100vw - 1200px) / 2)); }
.door p { max-width: 30em; }
.door--garden p { color: var(--on-canopy-soft); }
.door--dining p { color: var(--on-cacao-soft); }

/* Home: closing line */

.closing .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.closing p { max-width: 22em; font-family: var(--display); font-size: clamp(28px, 3vw, 40px); line-height: 1.2; color: var(--canopy); text-wrap: balance; }

/* Inner pages: opening */

.page-hero .wrap { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 40px 80px; }
.page-hero h1 { flex: 1 1 380px; min-width: 0; }
.page-hero p { flex: 1.1 1 420px; min-width: 0; font-size: 20px; line-height: 1.65; }
/* A wide photo that sits half on the opening colour and half on the next band. */
.page-photo { background: linear-gradient(to bottom, var(--from) 0%, var(--from) 50%, var(--to) 50%, var(--to) 100%); }
.page-photo--garden { --from: var(--canopy); --to: var(--stone); }
.page-photo--dining { --from: var(--cacao); --to: var(--husk); }

/* Food Gardens: the four steps */

.steps { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.step { border-top: 1px solid var(--line); padding: 36px 0; display: flex; flex-wrap: wrap; gap: 16px 64px; }
.step__head { flex: 1 1 300px; min-width: 0; display: flex; align-items: baseline; gap: 20px; }
.step__num { min-width: 1.2em; font-family: var(--display); font-size: 26px; line-height: 1.15; color: var(--moss); }
.step__body { flex: 1.5 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.receive { max-width: 34em; display: flex; flex-direction: column; gap: 10px; }
.receive__label { font-family: var(--sans); font-weight: 700; line-height: 1.4; color: var(--canopy); }
.receive ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 0 32px; font-family: var(--sans); line-height: 1.45; }
.receive li { padding: 10px 0; border-top: 1px solid var(--line); }

/* Two columns side by side */

.cols { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 56px 96px; }
.cols > * { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.cols p { max-width: 30em; }
.plain-list { align-self: stretch; list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-size: 28px; line-height: 1.25; }
.plain-list li { padding: 16px 0; border-top: 1px solid var(--line); }

/* Dining: the three formats */

.formats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 40px; }
.format { border-top: 1px solid var(--line); padding-top: 24px; display: flex; flex-direction: column; gap: 12px; }

/* Label and value rows */

.deflist { align-self: stretch; margin: 0; border-bottom: 1px solid var(--line); }
.deflist div { padding: 16px 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 24px; }
.deflist dt { flex: 0 0 110px; font-family: var(--sans); line-height: 1.4; color: var(--muted); }
.band--cacao .deflist dt { color: var(--on-cacao-soft); }
.deflist dd { flex: 1 1 220px; margin: 0; font-size: 19px; line-height: 1.55; }
.deflist a { text-decoration: underline; text-underline-offset: 5px; }

/* About */

.about-hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 72px; }
.about-hero .photo { flex: 1 1 340px; min-width: 0; }
.about-hero__text { flex: 1.3 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.role { font-style: italic; font-size: 24px; line-height: 1.4; color: var(--moss); }
.about-hero__text .lede { max-width: 26em; margin-top: 8px; }
.story { border-bottom: 1px solid var(--line); }
.story__row { border-top: 1px solid var(--line); padding: 36px 0; display: flex; flex-wrap: wrap; gap: 16px 64px; }
.story__head { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.story__place { font-family: var(--sans); line-height: 1.4; color: #474C3D; }
.story__row p { flex: 1.5 1 420px; min-width: 0; max-width: 34em; }
.work .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px 64px; }
.work__text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.work__text p { max-width: 30em; }

/* Contact */

.contact__main { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.contact__main .lede { max-width: 28em; }
.contact__main .deflist { max-width: 520px; margin-top: 12px; }
.know { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 40px 64px; }
.know > div { display: flex; flex-direction: column; gap: 14px; }
.know h3 { font-size: 28px; line-height: 1.2; color: var(--canopy); }
.know .for-dinner { color: var(--cacao); }
.know ul { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.know li { padding: 13px 0; border-top: 1px solid var(--line); }
.note { color: #474C3D; }

/* Page not found */

.missing { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }

/* Footer */

.site-footer { background: var(--soil); color: var(--on-soil); font-family: var(--sans); line-height: 1.4; }
.site-footer .wrap { padding-block: 72px 48px; display: flex; flex-direction: column; gap: 48px; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px 64px; }
.footer__brand { max-width: 400px; display: flex; flex-direction: column; gap: 10px; }
.footer__brand strong { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1.2; }
.footer__brand span { line-height: 1.5; color: var(--on-soil-soft); }
.footer__links { display: flex; flex-direction: column; }
.footer__links a { padding: 10px 0; text-decoration: none; }
.footer__legal { border-top: 1px solid #3A3028; padding-top: 20px; font-size: 16px; color: var(--on-soil-soft); }

@media (max-width: 640px) {
  .band { padding-block: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  a { transition: none; }
}
