:root {
  --ink: #090909;
  --cream: #ececeb;
  --paper: #fafafa;
  --sage: #777b7d;
  --forest: #1a1b1c;
  --peach: #777b7d;
  --gold: #c7cbcd;
  --line: #c8c9c9;
  --muted: #5f6264;
  --shadow: 0 22px 65px rgba(0, 0, 0, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: "DM Sans", sans-serif; }
a { color: inherit; }
button, input, textarea { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.site-header { height: 84px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(24px, 6vw, 96px); background: rgba(250,250,250,.95); border-bottom: 1px solid rgba(0,0,0,.14); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(10px); }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-family: "Playfair Display", serif; font-size: 21px; font-weight: 600; }
.brand-mark { width: 38px; height: 38px; border-radius: 50% 50% 44% 56%; display: grid; place-items: center; color: white; background: var(--forest); font: 700 12px "DM Sans", sans-serif; letter-spacing: .08em; transform: rotate(-4deg); }
.brand-mark + span { transform: translateY(-1px); }
.brand-logo { width: 48px; height: 48px; border-radius: 3px; object-fit: contain; background: #000; }
.brand-logo + span { transform: translateY(-1px); }
nav { display: flex; gap: 30px; align-items: center; }
nav a { font-size: 14px; font-weight: 600; text-decoration: none; }
nav a:not(.editor-link):hover, nav a.active { color: var(--forest); text-decoration: underline; text-underline-offset: 6px; }
.editor-link { border: 1px solid var(--ink); padding: 10px 16px; border-radius: 100px; }
.editor-link:hover { color: white; background: var(--ink); }
.hero { min-height: 640px; display: grid; grid-template-columns: 1.1fr .9fr; padding: 70px clamp(24px, 8vw, 130px) 85px; align-items: center; overflow: hidden; background: radial-gradient(circle at 85% 28%, #fff 0, #ededed 27%, transparent 28%), linear-gradient(135deg, #fafafa 0 58%, #dedfdf 58%); }
.hero-copy { max-width: 680px; position: relative; z-index: 2; }
.eyebrow { margin: 0 0 17px; color: var(--muted); letter-spacing: .2em; font-size: 12px; font-weight: 700; }
h1, h2 { font-family: "Playfair Display", serif; margin-top: 0; line-height: 1.03; }
h1 { font-family: "Oswald", sans-serif; font-size: clamp(54px, 7vw, 96px); margin-bottom: 25px; letter-spacing: -.025em; text-transform: uppercase; }
h1 em { color: var(--muted); font-family: "Playfair Display", serif; font-weight: 600; text-transform: none; }
.hero-intro { font-size: clamp(18px, 2vw, 23px); line-height: 1.55; max-width: 560px; color: var(--muted); margin-bottom: 35px; }
.button { border: 0; border-radius: 100px; padding: 14px 21px; text-decoration: none; display: inline-flex; align-items: center; gap: 18px; cursor: pointer; font-weight: 700; font-size: 14px; }
.button.primary { background: var(--forest); color: white; }
.button.primary:hover { background: var(--ink); transform: translateY(-1px); }
.button.secondary { background: transparent; border: 1px solid var(--line); }
.hero-art { width: min(480px, 40vw); aspect-ratio: 1; justify-self: end; border-radius: 48% 52% 45% 55%; background: linear-gradient(155deg, #536a58 0 58%, #607e88 58% 70%, #34483a 70%); position: relative; transform: rotate(3deg); box-shadow: var(--shadow); }
.hero-art::after { content: ""; position: absolute; width: 62%; height: 62%; right: -20%; bottom: -15%; border-radius: 50%; border: 2px solid rgba(62,90,76,.35); }
.hero-art p { position: absolute; z-index: 3; left: 50%; top: 48%; transform: translate(-50%,-50%) rotate(-3deg); color: white; font: italic 600 clamp(28px, 4vw, 50px)/1.1 "Playfair Display", serif; width: 80%; text-align: center; }
.hero-logo-wrap { width: min(520px, 42vw); aspect-ratio: 1; justify-self: end; position: relative; }
.hero-logo-wrap::before { content: ""; position: absolute; inset: 5% -6% -5% 6%; border-radius: 8px; background: #000; opacity: .12; }
.hero-logo { width: 100%; height: 100%; object-fit: contain; border-radius: 4px; position: relative; z-index: 1; background: #000; box-shadow: 0 26px 70px rgba(17,24,21,.25); }
.sun { position: absolute; width: 64px; height: 64px; border-radius: 50%; background: var(--gold); top: 14%; right: 17%; }
.arch { position: absolute; border: 2px solid rgba(255,255,255,.42); border-bottom: 0; border-radius: 100px 100px 0 0; width: 55%; height: 40%; left: 12%; bottom: 9%; }
.arch-two { width: 42%; height: 30%; left: 19%; }
.stories-section { padding: 95px clamp(24px, 8vw, 130px) 110px; background: var(--paper); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 40px; }
.section-heading h2, .about-section h2 { font-size: clamp(38px, 5vw, 62px); margin-bottom: 0; }
.search-box input { min-width: 240px; border: 0; border-bottom: 1px solid var(--ink); padding: 10px 2px; background: transparent; outline: none; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { background: var(--cream); cursor: pointer; transition: transform .2s, box-shadow .2s; min-width: 0; }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post-image { aspect-ratio: 16/10; width: 100%; object-fit: cover; background: var(--sage); display: block; }
.post-placeholder { display: grid; place-items: center; color: white; font: 600 25px "Oswald", sans-serif; text-transform: uppercase; letter-spacing: .05em; background: linear-gradient(135deg, #777, #111); }
.post-card-body { padding: 25px; }
.post-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 15px; }
.post-card h3 { font: 600 27px/1.15 "Oswald", sans-serif; text-transform: uppercase; margin: 0 0 12px; }
.post-card p { margin: 0; color: var(--muted); line-height: 1.55; }
.empty-state { text-align: center; padding: 60px; border: 1px dashed var(--line); }
.shop-section { padding: 100px clamp(24px, 8vw, 130px); background: linear-gradient(120deg, #050505, #292b2c); color: white; display: grid; grid-template-columns: 1.15fr .85fr; gap: 70px; align-items: center; }
.shop-section .eyebrow { color: var(--gold); }
.shop-section h2 { font-size: clamp(42px, 6vw, 72px); margin-bottom: 18px; }
.shop-copy > p:last-child { color: rgba(255,255,255,.72); font-size: 18px; line-height: 1.65; max-width: 650px; }
.shop-links { display: grid; gap: 14px; }
.shop-button { display: flex; justify-content: space-between; align-items: center; padding: 22px 25px; border: 1px solid rgba(255,255,255,.28); color: white; text-decoration: none; font-weight: 700; transition: background .2s, color .2s; }
.shop-button:hover { background: #fff; color: var(--ink); border-color: #fff; }
.shop-coming-soon { padding: 25px; border: 1px dashed rgba(255,255,255,.28); color: rgba(255,255,255,.68); line-height: 1.6; }
.about-section { display: grid; grid-template-columns: .6fr 1.4fr; gap: 70px; padding: 110px clamp(24px, 12vw, 190px); background: linear-gradient(145deg, #a7aaac, #626668); }
.about-section h2 { color: white; max-width: 800px; }
.about-section div p { max-width: 650px; line-height: 1.7; font-size: 18px; }
.connect-section { padding: 105px clamp(24px, 8vw, 130px); background: var(--paper); }
.connect-heading { max-width: 720px; margin-bottom: 42px; }
.connect-heading h2 { font-size: clamp(40px, 5vw, 64px); margin-bottom: 18px; }
.connect-heading > p:last-child { color: var(--muted); font-size: 18px; line-height: 1.6; }
.social-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.social-card { min-height: 120px; padding: 24px; border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; color: var(--muted); text-decoration: none; background: var(--cream); }
.social-name { color: var(--ink); font: 600 25px "Oswald", sans-serif; text-transform: uppercase; }
.active-social { background: var(--forest); color: rgba(255,255,255,.8); border-color: var(--forest); transition: transform .2s, background .2s; }
.active-social .social-name { color: white; }
.active-social:hover { transform: translateY(-3px); background: var(--ink); }
footer { padding: 35px clamp(24px, 6vw, 96px); display: flex; justify-content: space-between; align-items: center; gap: 20px; }
footer p, footer > a:last-child { color: var(--muted); font-size: 13px; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--muted); font-size: 13px; }
.post-dialog { width: min(820px, calc(100% - 32px)); max-height: 90vh; border: 0; padding: 0; background: var(--paper); box-shadow: var(--shadow); }
.post-dialog::backdrop { background: rgba(25,35,32,.72); backdrop-filter: blur(4px); }
.dialog-close { position: sticky; float: right; top: 12px; margin: 12px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--ink); color: white; font-size: 27px; cursor: pointer; }
.dialog-hero { width: 100%; max-height: 440px; object-fit: cover; }
.dialog-body { padding: clamp(28px, 6vw, 70px); clear: both; }
.dialog-body h1 { font-size: clamp(42px, 7vw, 70px); }
.dialog-body .byline { color: var(--muted); margin-bottom: 35px; }
.story-copy p { line-height: 1.8; font-size: 18px; }
.video-wrap { position: relative; padding-bottom: 56.25%; height: 0; margin: 38px 0; background: var(--ink); }
.video-wrap iframe { position: absolute; width: 100%; height: 100%; inset: 0; border: 0; }

/* Editor */
.editor-shell { padding: 65px clamp(20px, 6vw, 90px) 100px; }
.editor-intro { max-width: 760px; margin-bottom: 45px; }
.editor-intro h1 { font-size: clamp(48px, 6vw, 78px); margin-bottom: 18px; }
.editor-intro > p:last-child { color: var(--muted); font-size: 18px; }
.store-settings { background: var(--ink); color: white; padding: clamp(25px, 4vw, 48px); margin-bottom: 35px; display: grid; grid-template-columns: .75fr 1.25fr; gap: 40px; align-items: start; }
.store-settings h2 { font-size: 36px; margin-bottom: 12px; }
.store-settings .eyebrow { color: var(--gold); }
.store-settings > div > p:last-child { color: rgba(255,255,255,.7); line-height: 1.6; }
.store-form { display: grid; gap: 18px; }
.store-form label { display: grid; gap: 8px; font-size: 14px; font-weight: 700; }
.store-form input { width: 100%; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: white; padding: 14px 15px; outline: none; }
.store-form input:focus { border-color: var(--gold); }
.store-form input::placeholder { color: rgba(255,255,255,.45); }
.store-form .save-message { color: var(--gold); }
.editor-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .7fr); gap: 35px; align-items: start; }
.post-form, .post-manager { background: var(--paper); padding: clamp(25px, 4vw, 48px); box-shadow: 0 10px 40px rgba(36,51,47,.06); }
.post-form { display: grid; gap: 24px; }
.post-form label { font-size: 14px; font-weight: 700; display: grid; gap: 9px; }
.post-form label > span, .post-form label > small { font-weight: 400; color: var(--muted); }
.post-form input, .post-form textarea { width: 100%; border: 1px solid var(--line); background: #fff; padding: 14px 15px; outline: none; color: var(--ink); border-radius: 4px; }
.post-form input:focus, .post-form textarea:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(62,90,76,.1); }
.post-form textarea { resize: vertical; line-height: 1.6; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-help { font-weight: 400 !important; }
.field-help.error { color: #a43c31 !important; }
.form-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.save-message { color: var(--forest); font-size: 14px; font-weight: 600; }
.post-manager { position: sticky; top: 105px; }
.manager-heading { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.manager-heading .eyebrow { margin-bottom: 6px; }
.manager-heading h2 { font-family: "Oswald", sans-serif; text-transform: uppercase; font-size: 29px; margin: 0; }
.manager-heading > span { display: grid; place-items: center; border-radius: 50%; width: 38px; height: 38px; background: var(--sage); color: white; font-weight: 700; }
.post-list { max-height: 450px; overflow: auto; }
.manager-item { padding: 19px 0; border-bottom: 1px solid var(--line); }
.manager-item h3 { font: 600 19px "Oswald", sans-serif; text-transform: uppercase; margin: 0 0 5px; }
.manager-item p { color: var(--muted); font-size: 12px; margin: 0 0 10px; }
.manager-actions { display: flex; gap: 14px; }
.text-button { appearance: none; border: 0; padding: 0; background: none; color: var(--forest); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 13px; font-weight: 700; }
.text-button.danger { color: #a43c31; }
.backup-tools { margin-top: 28px; padding: 20px; background: var(--cream); }
.backup-tools h3 { margin: 0 0 7px; font-size: 15px; }
.backup-tools p { color: var(--muted); font-size: 12px; line-height: 1.5; }
.backup-tools > div { display: flex; gap: 15px; flex-wrap: wrap; }
.file-button input { display: none; }

@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; padding-top: 60px; }
  .hero-art, .hero-logo-wrap { width: min(430px, 85vw); margin-top: 60px; justify-self: center; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .about-section { grid-template-columns: 1fr; gap: 20px; }
  .shop-section, .store-settings { grid-template-columns: 1fr; }
  .social-grid { grid-template-columns: 1fr 1fr; }
  .editor-layout { grid-template-columns: 1fr; }
  .post-manager { position: static; }
}
@media (max-width: 580px) {
  .site-header { height: 72px; padding: 0 18px; }
  .brand-logo { width: 42px; height: 42px; }
  .site-header .brand > span:last-child { font-size: 16px; max-width: 145px; line-height: 1.05; }
  nav { gap: 14px; }
  .site-header nav a:not(.editor-link):not(:only-child) { display: none; }
  .editor-link { padding: 8px 11px; }
  .hero { min-height: auto; padding: 55px 22px 70px; }
  h1 { font-size: 53px; }
  .stories-section { padding: 70px 22px; }
  .section-heading { align-items: start; flex-direction: column; }
  .search-box, .search-box input { width: 100%; }
  .post-grid { grid-template-columns: 1fr; }
  .about-section { padding: 75px 22px; }
  .shop-section { padding: 75px 22px; }
  .connect-section { padding: 75px 22px; }
  .social-grid { grid-template-columns: 1fr; }
  footer { align-items: start; flex-direction: column; }
  .footer-links { flex-wrap: wrap; }
  .footer-brand { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .post-form, .post-manager { padding: 24px 19px; }
}
