/* Bothy Studios: shared studio styles.
   Palette: oatmeal paper, peat ink, heather, moss, stone and a lamplit window. */
:root {
  --paper: #f6f1e7;
  --paper-2: #ede5d6;
  --card: #fffdf8;
  --ink: #1f2a2a;
  --ink-soft: #4b5654;
  --rule: #ddd3c1;
  --heather: #6b4e7a;
  --heather-soft: #e9e0ee;
  --moss: #4f6b4a;
  --stone: #9c958a;
  --lamp: #f2b04a;
  --night: #17222b;
  --night-2: #223241;
  --f-display: "Fraunces", Georgia, serif;
  --f-body: "DM Sans", system-ui, -apple-system, sans-serif;
  --radius: 18px;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--heather); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--lamp); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }

/* Header */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  color: #f4efe4;
}
.site-header.solid { position: static; background: var(--night); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-family: var(--f-display); font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.brand img { width: 44px; height: 44px; flex: none; filter: drop-shadow(0 2px 6px rgba(0,0,0,.25)); transition: transform .3s ease; }
.brand:hover { color: inherit; }
.brand:hover img { transform: rotate(-6deg) scale(1.05); }
.brand .wm { display: grid; line-height: 1; }
.brand .wm b { font-family: var(--f-display); font-weight: 600; font-size: 24px; letter-spacing: -.01em; }
.brand .wm small { font-family: var(--f-body); font-weight: 600; font-size: 10.5px; letter-spacing: .34em; text-transform: uppercase; color: var(--lamp); margin-top: 4px; padding-left: 1px; }
@media (prefers-reduced-motion: reduce) { .brand:hover img { transform: none; } }
.nav { display: flex; gap: clamp(12px, 3vw, 28px); font-size: 15px; font-weight: 500; }
.nav a { color: inherit; text-decoration: none; opacity: .85; }
.nav a:hover { opacity: 1; text-decoration: underline; color: inherit; }
.brand, .nav a { white-space: nowrap; }
@media (max-width: 520px) {
  .nav .hide-sm { display: none; }
  .brand { gap: 8px; }
  .brand img { width: 38px; height: 38px; }
  .brand .wm b { font-size: 21px; }
  .nav { gap: 14px; font-size: 14px; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #1a2733 0%, #2c3c52 45%, #6b4e7a 78%, #b07a6a 100%);
  color: #f6f1e7;
  min-height: min(92vh, 760px);
  display: flex; align-items: center;
}
.hero-scene { position: absolute; inset: auto 0 0 0; width: 100%; height: 62%; }
.hero-scene svg { width: 100%; height: 100%; display: block; }
.stars { position: absolute; inset: 0 0 40% 0; background-image:
  radial-gradient(1.5px 1.5px at 12% 18%, #fff8 50%, transparent 51%),
  radial-gradient(1px 1px at 28% 32%, #fff7 50%, transparent 51%),
  radial-gradient(1.5px 1.5px at 46% 12%, #fff9 50%, transparent 51%),
  radial-gradient(1px 1px at 63% 26%, #fff6 50%, transparent 51%),
  radial-gradient(1.5px 1.5px at 78% 14%, #fff8 50%, transparent 51%),
  radial-gradient(1px 1px at 88% 36%, #fff6 50%, transparent 51%),
  radial-gradient(1px 1px at 6% 40%, #fff5 50%, transparent 51%),
  radial-gradient(1px 1px at 54% 40%, #fff5 50%, transparent 51%);
}
.haar { position: absolute; left: -20%; width: 140%; height: 120px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(240,235,228,.28), rgba(240,235,228,0) 70%);
  filter: blur(6px); pointer-events: none; }
.haar.h1 { bottom: 22%; animation: drift 38s ease-in-out infinite alternate; }
.haar.h2 { bottom: 8%; height: 160px; opacity: .8; animation: drift 52s ease-in-out infinite alternate-reverse; }
@keyframes drift { from { transform: translateX(-6%); } to { transform: translateX(6%); } }
.window-glow { animation: flicker 5s ease-in-out infinite; }
@keyframes flicker { 0%, 100% { opacity: 1; } 45% { opacity: .82; } 50% { opacity: .95; } 70% { opacity: .88; } }
@media (prefers-reduced-motion: reduce) { .haar, .window-glow { animation: none; } }

.hero-copy { position: relative; z-index: 2; padding-block: 120px 220px; max-width: 680px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--lamp); margin: 0 0 14px; }
.hero h1 { font-family: var(--f-display); font-weight: 600; font-size: clamp(40px, 7vw, 76px); line-height: 1.02; letter-spacing: -.02em; margin: 0 0 18px; text-wrap: balance; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--lamp); }
.hero .lede { font-size: clamp(18px, 2.2vw, 21px); color: #e8e1d6; margin: 0 0 30px; max-width: 54ch; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 2px solid transparent; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-lamp { background: var(--lamp); color: #2a1f10; }
.btn-lamp:hover { background: #f6c06a; color: #2a1f10; }
.btn-ghost { border-color: rgba(246,241,231,.45); color: #f6f1e7; }
.btn-ghost:hover { border-color: #f6f1e7; color: #f6f1e7; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections */
section.block { padding-block: clamp(64px, 9vw, 110px); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head .eyebrow { color: var(--heather); }
h2 { font-family: var(--f-display); font-weight: 600; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.08; letter-spacing: -.015em; margin: 0 0 14px; text-wrap: balance; }
.section-head p { color: var(--ink-soft); margin: 0; font-size: 18px; }

/* Project cards */
.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.project { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--rule); text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease; }
a.project:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -22px rgba(31,42,42,.45); color: inherit; }
.project .shot { aspect-ratio: 16 / 9; overflow: hidden; background: var(--night); }
.project .shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
a.project:hover .shot img { transform: scale(1.04); }
.project .body { padding: 20px 22px 24px; display: grid; gap: 8px; }
.project .top { display: flex; align-items: center; gap: 14px; }
.project .icon { width: 56px; height: 56px; border-radius: 13px; box-shadow: 0 4px 10px rgba(0,0,0,.18); flex: none; }
.project h3 { font-family: var(--f-display); font-size: 24px; font-weight: 600; line-height: 1.15; margin: 0; }
.project .kind { font-size: 13px; color: var(--ink-soft); margin: 2px 0 0; }
.project p { margin: 0; color: var(--ink-soft); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag { font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: var(--heather-soft); color: var(--heather); }
.tag.moss { background: #e3ebdf; color: var(--moss); }
.tag.lamp { background: #fbebd0; color: #8a5a12; }
.project.soon { background: transparent; border: 2px dashed var(--rule); justify-content: center; align-items: center; text-align: center; padding: 40px 28px; min-height: 320px; }
.project.soon .kettle { font-size: 40px; line-height: 1; margin-bottom: 8px; }
.project.soon h3 { font-size: 22px; }

/* About */
.about { background: var(--paper-2); }
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }
.about p { font-size: 18px; color: var(--ink-soft); margin: 0 0 16px; max-width: 60ch; }
.about p strong { color: var(--ink); }
.dict { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 28px 30px; box-shadow: 0 18px 40px -30px rgba(31,42,42,.5); }
.dict .word { font-family: var(--f-display); font-size: 40px; font-weight: 600; margin: 0; line-height: 1.1; }
.dict .pron { color: var(--ink-soft); font-style: italic; margin: 4px 0 14px; }
.dict ol { margin: 0; padding-left: 1.2em; display: grid; gap: 10px; }
.dict li::marker { color: var(--heather); font-weight: 700; }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; margin-top: 28px; }
.value { display: grid; gap: 4px; }
.value b { font-family: var(--f-display); font-size: 19px; }
.value span { color: var(--ink-soft); font-size: 15.5px; }

/* Contact */
.contact-card { background: var(--night); color: #efe9df; border-radius: 24px; padding: clamp(32px, 6vw, 64px); display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; position: relative; overflow: hidden; }
.contact-card h2 { color: #f6f1e7; }
.contact-card p { margin: 0; color: #c9c2b6; max-width: 52ch; }
.contact-card .eyebrow { color: var(--lamp); }
@media (max-width: 720px) { .contact-card { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { padding-block: 40px 56px; color: var(--ink-soft); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--ink-soft); }
.site-footer .brand { color: var(--ink); font-size: 18px; }
.site-footer .brand img { width: 38px; height: 38px; filter: none; }
.site-footer .brand .wm b { font-size: 20px; }
.site-footer .brand .wm small { color: var(--heather); font-size: 9.5px; }

/* Simple text pages */
.page { padding-block: clamp(48px, 8vw, 88px); }
.page .wrap { max-width: 760px; }
.page h1 { font-family: var(--f-display); font-weight: 600; font-size: clamp(36px, 6vw, 54px); line-height: 1.05; margin: 0 0 12px; }
.page h2 { font-size: 26px; margin: 40px 0 10px; }
.page p, .page li { color: var(--ink-soft); max-width: 65ch; }
.page .meta { font-size: 14px; color: var(--stone); }
