/* ==========================================================
   hobochocolate.com
   Shared by index.html and 404.html. No frameworks. Edit anything.
   ========================================================== */

:root{
  --cocoa:       #2A1A12;  /* page background — roasted, not black */
  --cocoa-deep:  #180D07;  /* the channels between chocolate segments */
  --cocoa-light: #3A2418;  /* top of a segment, where light hits */
  --milk:        #F0E4D4;  /* main text */
  --chalk:       #B5A08E;  /* secondary text */
  --foil:        #C9A227;  /* wrapper foil — used sparingly, on purpose */

  --measure: 62ch;         /* comfortable reading width */
  --edge: clamp(1.25rem, 5vw, 5rem);
}

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

html{ scroll-behavior:smooth; }

body{
  margin:0;
  background:var(--cocoa);
  /* faint vignette so the brown reads as a surface, not a flat fill */
  background-image:
    radial-gradient(120% 90% at 15% -10%, rgba(240,228,212,.07), transparent 60%),
    radial-gradient(90% 70% at 100% 100%, rgba(0,0,0,.35), transparent 55%);
  background-attachment:fixed;
  color:var(--milk);
  font-family:"Archivo", system-ui, sans-serif;
  font-size:clamp(1rem, .95rem + .25vw, 1.125rem);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

a{ color:inherit; }

/* Keyboard users must always be able to see where they are */
:focus-visible{
  outline:2px solid var(--foil);
  outline-offset:3px;
}

.wrap{
  max-width:72rem;
  margin:0 auto;
  padding-inline:var(--edge);
}

/* ---------- top bar ---------- */

.topbar{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:1rem;
  padding-block:1.5rem;
  border-bottom:1px solid rgba(240,228,212,.12);
}

.topbar__mark{
  font-family:"Fraunces", Georgia, serif;
  font-variation-settings:"SOFT" 40, "WONK" 1;
  font-weight:700;
  font-size:1.0625rem;
  letter-spacing:.01em;
  text-decoration:none;
}

.topbar__links{
  display:flex;
  gap:1.5rem;
  font-size:.9375rem;
  color:var(--chalk);
}

.topbar__links a{
  text-decoration:none;
  padding-bottom:2px;
  border-bottom:1px solid transparent;
}
.topbar__links a:hover{ color:var(--milk); border-bottom-color:var(--foil); }

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

.hero{
  padding-block:clamp(4rem, 12vh, 9rem) clamp(3.5rem, 9vh, 7rem);
}

.hero__name{
  font-family:"Fraunces", Georgia, serif;
  font-variation-settings:"SOFT" 60, "WONK" 1;
  font-weight:900;
  font-size:clamp(3.25rem, 13vw, 9.5rem);
  line-height:.88;
  letter-spacing:-.025em;
  margin:0;
}
.hero__name span{ display:block; }

/* the one piece of foil on the page */
.hero__rule{
  width:5.5rem;
  height:3px;
  background:var(--foil);
  margin:clamp(1.75rem,4vw,2.75rem) 0 clamp(1.5rem,3vw,2rem);
}

.hero__blurb{
  max-width:var(--measure);
  font-size:clamp(1.125rem, 1rem + .6vw, 1.5rem);
  line-height:1.5;
  margin:0 0 2.5rem;
}
.hero__blurb em{
  font-style:normal;
  color:var(--chalk);
}

.button{
  display:inline-block;
  font-family:"Archivo", sans-serif;
  font-weight:600;
  font-size:1rem;
  color:var(--cocoa-deep);
  background:var(--milk);
  text-decoration:none;
  padding:.8rem 1.4rem;
  border-radius:2px;
}
.button:hover{ background:var(--foil); }

/* ---------- the bar: projects as chocolate segments ---------- */

.bar-section{ padding-block:clamp(2rem,6vh,4rem) clamp(4rem,10vh,7rem); }

.section-head{
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  justify-content:space-between;
  gap:.75rem 2rem;
  margin-bottom:1.75rem;
}

.section-head h2{
  font-family:"Fraunces", Georgia, serif;
  font-variation-settings:"SOFT" 40, "WONK" 1;
  font-weight:700;
  font-size:clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem);
  line-height:1.1;
  margin:0;
}

.section-head p{
  margin:0;
  color:var(--chalk);
  font-size:.9375rem;
  max-width:34ch;
}

/* The bar itself. The dark background shows through the gaps,
   so the segments read as one moulded slab rather than loose cards. */
.bar{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:5px;
  background:var(--cocoa-deep);
  padding:5px;
  border-radius:4px;
  box-shadow:0 1.5rem 3rem rgba(0,0,0,.4);
}

.segment{
  display:block;
  position:relative;
  padding:clamp(1.5rem, 3.5vw, 2.5rem);
  min-height:13rem;
  text-decoration:none;
  color:inherit;
  background:linear-gradient(158deg, var(--cocoa-light), #241509);
  /* the moulded edge: light catches the top-left, shadow pools bottom-right */
  box-shadow:
    inset 2px 2px 0 rgba(240,228,212,.08),
    inset -2px -2px 0 rgba(0,0,0,.4);
  transition:transform .18s ease, box-shadow .18s ease;
}

.segment h3{
  font-family:"Fraunces", Georgia, serif;
  font-variation-settings:"SOFT" 40, "WONK" 1;
  font-weight:700;
  font-size:1.5rem;
  line-height:1.15;
  margin:0 0 .6rem;
}

.segment p{
  margin:0;
  color:var(--chalk);
  font-size:.9375rem;
  line-height:1.55;
  max-width:38ch;
}

.segment__meta{
  margin-top:1.25rem;
  font-size:.8125rem;
  color:var(--foil);
}

/* a snapped-loose piece, on hover or keyboard focus */
a.segment:hover,
a.segment:focus-visible{
  transform:translateY(-4px);
  box-shadow:
    inset 2px 2px 0 rgba(240,228,212,.14),
    inset -2px -2px 0 rgba(0,0,0,.4),
    0 .75rem 1.5rem rgba(0,0,0,.45);
}

/* the empty square at the end of the bar */
.segment--open{
  background:none;
  box-shadow:inset 0 0 0 1px rgba(240,228,212,.1);
  display:flex;
  align-items:center;
}
.segment--open p{ color:var(--chalk); }

/* ---------- about + contact ---------- */

.closing{
  padding-block:clamp(3rem,8vh,5rem);
  border-top:1px solid rgba(240,228,212,.12);
  display:grid;
  gap:clamp(2.5rem,6vw,5rem);
  grid-template-columns:1fr;
}

.closing h2{
  font-family:"Fraunces", Georgia, serif;
  font-variation-settings:"SOFT" 40, "WONK" 1;
  font-weight:700;
  font-size:1.5rem;
  margin:0 0 .85rem;
}

.closing p{ margin:0 0 1rem; max-width:var(--measure); }
.closing p:last-child{ margin-bottom:0; }

.contact-link{
  font-size:1.125rem;
  text-decoration:none;
  border-bottom:2px solid var(--foil);
  padding-bottom:1px;
}
.contact-link:hover{ color:var(--foil); }

footer{
  padding-block:2rem 3rem;
  border-top:1px solid rgba(240,228,212,.12);
  color:var(--chalk);
  font-size:.875rem;
  display:flex;
  flex-wrap:wrap;
  gap:.5rem 1.5rem;
  justify-content:space-between;
}

/* ---------- wider screens ---------- */

@media (min-width:56rem){
  .bar{ grid-template-columns:repeat(2, 1fr); }
  .closing{ grid-template-columns:1.4fr 1fr; }
}

/* ---------- narrow screens ---------- */

@media (max-width:40rem){
  .bar{ grid-template-columns:1fr; }
  .segment{ min-height:0; }
  .topbar{ flex-direction:column; align-items:flex-start; gap:.75rem; }
}

/* ---------- people who'd rather things held still ---------- */

@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  *{ transition:none !important; }
  a.segment:hover, a.segment:focus-visible{ transform:none; }
}

/* ---------- the not-found page ---------- */

.lost{
  min-height:70vh;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding-block:4rem;
}

.lost h1{
  font-family:"Fraunces", Georgia, serif;
  font-variation-settings:"SOFT" 60, "WONK" 1;
  font-weight:900;
  font-size:clamp(3rem, 10vw, 6rem);
  line-height:.9;
  letter-spacing:-.02em;
  margin:0 0 1.25rem;
}

.lost p{
  color:var(--chalk);
  font-size:1.125rem;
  max-width:46ch;
  margin:0 0 2rem;
}
