/* =========================================================
   Palette — pulled from the redwood photo.
   Change these to re-color the whole site.
   ========================================================= */
:root {
  --cream:    #F4EDDF;
  --paper:    #FBF7EF;
  --bark:     #3B2A22;
  --bark-2:   #6B5446;
  --redwood:  #A4462B;
  --rust-lt:  #D9876A;
  --forest:   #2F4A3A;
  --sage:     #9DAE8F;
  --mustard:  #D9A23B;
  --line:     rgba(59, 42, 34, .16);

  --serif: "Fraunces", Georgia, serif;
  --sans:  "Jost", "Futura", "Avenir Next", system-ui, sans-serif;

  --radius: 18px;
  --max: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--bark);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* subtle paper grain */
  background-image:
    radial-gradient(rgba(59,42,34,.035) 1px, transparent 1px);
  background-size: 4px 4px;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); }
h1 em { font-style: italic; font-weight: 400; color: var(--redwood); }

.eyebrow {
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--redwood);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: currentColor;
}

.lede { font-size: 1.15rem; color: var(--bark-2); max-width: 36ch; }

.section-label {
  font-family: var(--sans);
  font-size: .8rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--bark-2);
  border-top: 2px solid var(--bark);
  padding-top: .9rem;
  margin: 0 0 1.5rem;
}

/* =========================================================
   Header + tabs
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.1rem 24px;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(8px);
}
.wordmark {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .04em;
  text-decoration: none;
}
.mark {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(to bottom, var(--mustard) 50%, var(--redwood) 50%);
}

.tabs {
  display: flex; gap: .25rem;
  background: var(--paper);
  border: 1.5px solid var(--bark);
  border-radius: 999px;
  padding: 4px;
}
.tabs a {
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  padding: .4rem 1rem;
  border-radius: 999px;
  transition: background .2s, color .2s;
}
.tabs a:hover { background: rgba(164,70,43,.1); }
.tabs a[aria-current="page"] { background: var(--bark); color: var(--cream); }

/* =========================================================
   Panels
   ========================================================= */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 24px 5rem;
}
.panel { animation: rise .5s ease both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .panel { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font: 500 1rem var(--sans);
  text-decoration: none;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid var(--bark);
  cursor: pointer;
  transition: transform .15s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--redwood); border-color: var(--redwood); color: var(--paper); }
.btn-solid:hover { background: var(--bark); border-color: var(--bark); }
.btn-ghost { background: transparent; color: var(--bark); }
.btn-ghost:hover { background: var(--bark); color: var(--cream); }

/* =========================================================
   Home
   ========================================================= */
.hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 3rem;
  align-items: center;
  min-height: 70vh;
}
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2rem; }

.hero-art {
  position: relative;
  margin: 0;
  justify-self: center;
  width: min(100%, 420px);
  aspect-ratio: 3 / 4;
}
.arch {
  position: relative; z-index: 2;
  width: 82%; height: 88%;
  margin: 6% auto 0;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 999px 999px 18px 18px;
  border: 6px solid var(--paper);
  box-shadow: 0 20px 40px -20px rgba(59,42,34,.5);
}
.shape { position: absolute; z-index: 1; }
.sun {
  width: 46%; aspect-ratio: 1; border-radius: 50%;
  background: var(--mustard);
  top: -2%; right: -6%;
}
.half {
  width: 52%; aspect-ratio: 2 / 1;
  border-radius: 999px 999px 0 0;
  background: var(--redwood);
  bottom: 2%; left: -10%;
  transform: rotate(-90deg);
  transform-origin: bottom center;
}
.block {
  width: 40%; height: 22%;
  background: var(--forest);
  bottom: -3%; right: -4%;
  border-radius: 6px;
}
.dots {
  width: 30%; height: 20%;
  top: 8%; left: -8%;
  background-image: radial-gradient(var(--bark) 2.2px, transparent 2.6px);
  background-size: 14px 14px;
  opacity: .55;
}

.currently { margin-top: 6rem; }
@media (max-width: 860px) { .currently { margin-top: 4rem; } }
.cards {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.card {
  position: relative;
  padding: 1.6rem 1.5rem 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--paper);
}
.card h3 { font-size: 1.5rem; margin-top: 2.4rem; }
.card p { margin: 0; opacity: .92; }
.c-rust    { background: var(--redwood); }
.c-forest  { background: var(--forest); }
.c-mustard { background: var(--mustard); color: var(--bark); }

.glyph { position: absolute; top: 1.4rem; left: 1.5rem; width: 34px; height: 34px; }
.glyph-circle { border-radius: 50%; border: 3px solid currentColor; }
.glyph-tri { width: 0; height: 0; border-left: 18px solid transparent; border-right: 18px solid transparent; border-bottom: 32px solid var(--mustard); }
.glyph-half { height: 17px; border-radius: 34px 34px 0 0; background: var(--redwood); top: 2rem; }

/* =========================================================
   About
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 4rem;
  align-items: center;
  margin-top: 1rem;
}
.about-photo { position: relative; max-width: 380px; justify-self: center; width: 100%; }
.about-photo img {
  position: relative; z-index: 1;
  width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 28%;
  border-radius: 50%;
}
.about-photo .ring {
  position: absolute; inset: -14px -14px auto auto;
  width: 100%; aspect-ratio: 1; border-radius: 50%;
  border: 2px solid var(--redwood);
}
.about-text p { max-width: 56ch; color: var(--bark-2); }
.about-text h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }

.loves { margin-top: 4.5rem; }
.love-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: .2rem 2.5rem;
}
.love-list li {
  display: flex; align-items: center; gap: .9rem;
  padding: .8rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.1rem;
}
.bullet { flex: none; width: 16px; height: 16px; }
.b1 { background: var(--redwood); border-radius: 50%; }
.b2 { background: var(--forest); }
.b3 { background: var(--mustard); border-radius: 16px 16px 0 0; height: 8px; }
.b4 { width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 14px solid var(--sage); }

.facts {
  margin: 4rem 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--forest); color: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
}
.facts div { padding: 1.6rem 1.4rem; border-right: 1px solid rgba(244,237,223,.18); }
.facts div:last-child { border-right: 0; }
.facts dt { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--sage); margin-bottom: .4rem; }
.facts dd { margin: 0; font-family: var(--serif); font-size: 1.3rem; }

/* =========================================================
   Journal
   ========================================================= */
.page-head { margin: 1rem 0 3rem; }
.page-head h1 { max-width: 16ch; }

.posts { display: grid; gap: 1rem; }
.post {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 2rem;
  padding: 1.8rem 0;
  border-top: 2px solid var(--bark);
}
.post:last-child { border-bottom: 2px solid var(--bark); }
.post-meta { display: flex; flex-direction: column; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--bark-2); }
.tag {
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
  padding: .25rem .7rem; border-radius: 999px; color: var(--paper);
}
.t-forest { background: var(--forest); }
.t-rust { background: var(--redwood); }
.t-mustard { background: var(--mustard); color: var(--bark); }

details summary { list-style: none; cursor: pointer; position: relative; padding-right: 5rem; }
details summary::-webkit-details-marker { display: none; }
details summary h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .35rem; transition: color .2s; }
details summary:hover h2 { color: var(--redwood); }
details summary p { margin: 0; color: var(--bark-2); }
.read-more {
  position: absolute; right: 0; top: .2rem;
  font-size: .85rem; font-weight: 500;
  border: 1.5px solid var(--bark); border-radius: 999px;
  padding: .25rem .9rem;
}
details[open] .read-more { background: var(--bark); color: var(--cream); }
details[open] .read-more::after { content: " ×"; }
.post-body { padding-top: 1.2rem; max-width: 62ch; }
.post-body p, .post-body li { color: var(--bark); }

/* =========================================================
   Contact
   ========================================================= */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
  align-items: start; margin-top: 1rem;
}
.big-email {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  color: var(--redwood);
  text-decoration: none;
  border-bottom: 3px solid var(--mustard);
  margin: 1rem 0 2rem;
  word-break: break-word;
}
.big-email:hover { color: var(--bark); }
.contact-note { color: var(--bark-2); margin: 1.5rem 0 0; }
.socials { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.socials a {
  display: inline-block; text-decoration: none;
  padding: .45rem 1.1rem; border-radius: 999px;
  border: 1.5px solid var(--bark); font-weight: 500;
}
.socials a:hover { background: var(--forest); color: var(--cream); border-color: var(--forest); }

.contact-form {
  background: var(--paper);
  border: 1.5px solid var(--bark);
  border-radius: var(--radius);
  padding: 2rem;
  display: grid; gap: 1.1rem;
  box-shadow: 10px 10px 0 var(--mustard);
}
.contact-form label { display: grid; gap: .35rem; font-weight: 500; font-size: .95rem; }
.contact-form input, .contact-form textarea {
  font: inherit; color: var(--bark);
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: .7rem .9rem;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--redwood);
  box-shadow: 0 0 0 3px rgba(164,70,43,.18);
}
.contact-form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { text-align: center; padding: 0 24px 2.5rem; color: var(--bark-2); font-size: .9rem; }
.stripe { display: flex; height: 10px; max-width: var(--max); margin: 0 auto 1.5rem; border-radius: 99px; overflow: hidden; }
.stripe span { flex: 1; }
.stripe span:nth-child(1) { background: var(--redwood); }
.stripe span:nth-child(2) { background: var(--mustard); }
.stripe span:nth-child(3) { background: var(--forest); }
.stripe span:nth-child(4) { background: var(--sage); }

/* Visible keyboard focus */
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; border-radius: 6px; }

/* =========================================================
   Tablet + phone
   ========================================================= */
@media (max-width: 860px) {
  .hero, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero { min-height: auto; padding-top: 1rem; }
  .hero-art { order: -1; width: min(80%, 340px); margin-bottom: 1rem; }
  .half { bottom: 24%; }
  .cards { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts div:nth-child(2) { border-right: 0; }
  .facts div:nth-child(-n+2) { border-bottom: 1px solid rgba(244,237,223,.18); }
  .about-photo { max-width: 280px; }
}

@media (max-width: 600px) {
  body { font-size: 17px; }
  .site-header { padding: .9rem 16px; justify-content: center; }
  .tabs { width: 100%; justify-content: space-between; }
  .tabs a { padding: .4rem .7rem; font-size: .9rem; }
  main { padding: 1.5rem 16px 4rem; }
  .love-list { grid-template-columns: 1fr; }
  .post { grid-template-columns: 1fr; gap: .8rem; }
  .post-meta { flex-direction: row; align-items: center; }
  details summary { padding-right: 0; }
  .read-more { position: static; display: inline-block; margin-top: .8rem; }
  .contact-form { padding: 1.4rem; box-shadow: 6px 6px 0 var(--mustard); }
  .facts dd { font-size: 1.1rem; }
}
