:root {
  color-scheme: light;
  --paper: #f8f4ed;
  --cream: #efe6d8;
  --brown: #7c4d2c;
  --ink: #443024;
  --muted: #756455;
  --line: #d9cbbb;
  --serif: Georgia, "Times New Roman", serif;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  scrollbar-gutter: stable;
}

* { box-sizing: border-box; }
body {
  min-height: 100svh;
  margin: 0;
  font-size: 18px;
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse at 92% 12%, #cda77a55, transparent 40%),
    radial-gradient(ellipse at 0% 40%, #dfc5a552, transparent 36%),
    radial-gradient(ellipse at 80% 85%, #d8bc9850, transparent 38%),
    repeating-linear-gradient(0deg, #7c4d2c04 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, #7c4d2c04 0 1px, transparent 1px 5px);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; }
::selection { background: var(--brown); color: var(--paper); }
[hidden] { display: none !important; }

/* Render JSON content before showing the page's final layout. */
html:not(.content-ready) .site-header,
html:not(.content-ready) main,
html:not(.content-ready) .site-footer,
html:not(.content-ready) .social-dock,
html:not(.content-ready) .skip-link { visibility: hidden; }
html:not(.content-ready) body { background-image: none; }

.site-header, .hero, .section, .site-footer {
  width: min(100% - 112px, 1320px);
  margin-inline: auto;
}
.site-header { display: flex; align-items: center; justify-content: space-between; min-height: 88px; gap: 24px; position: sticky; top: 0; z-index: 5; background: var(--paper); box-shadow: 0 0 0 100vmax var(--paper); clip-path: inset(0 -100vmax); }
.brand img { width: 151px; height: auto; }
nav { display: flex; gap: 38px; font-size: 16px; letter-spacing: .04em; }
nav a { padding-block: 12px; border-bottom: 1px solid transparent; }
nav a:hover { border-color: var(--brown); }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 10; padding: 12px 20px; background: var(--paper); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: center; padding-block: 16px 56px; gap: 40px; position: relative; isolation: isolate; }
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  inset: 7% 40% 12% 0;
  border-radius: 50%;
  background: radial-gradient(ellipse, #fffaf2b3, #fffaf200 70%);
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  width: 44%;
  top: 38px;
  bottom: 36px;
  right: 0;
  border: 1px solid #a77b4f40;
  border-radius: 48% 48% 2px 2px;
  transform: rotate(5deg);
}
.hero-copy { padding-block: 42px; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; line-height: 1.8; margin: 0 0 28px; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.055em; margin: 0; }
h1 { font-size: clamp(42px, 4.8vw, 66px); line-height: 1.1; }
h1 span, h1 em, h2 span, h2 em { display: block; }
h1 em, h2 em { font-weight: 400; color: var(--brown); }
.intro { max-width: 480px; font-size: 21px; line-height: 1.7; color: var(--muted); margin: 30px 0; }
.hero .eyebrow { font-size: 16px; letter-spacing: .14em; }
.text-link { display: inline-flex; gap: 18px; align-items: center; font-size: 16px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.hero-visual { min-width: 0; scroll-margin-top: 0; }
.gallery { display: grid; gap: 20px; }
.gallery img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; background: var(--cream); border-radius: 180px 180px 0 0; }
.gallery img:not(:first-child) { border-radius: 0; }
.gallery img { box-shadow: 0 18px 45px -22px #68432266; }
.image-caption { display: flex; justify-content: space-between; gap: 16px; margin-top: 17px; font-size: 14px; line-height: 1.6; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.section-wave { width: 100%; pointer-events: none; }
.section-wave svg { display: block; width: 100%; height: clamp(88px, 13.75vw, 200px); opacity: .85; overflow: hidden; }
.wave-sand { fill: #c5a17c; }
.wave-brown { fill: var(--brown); }
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding-block: 64px 90px; }
main { overflow-x: clip; }
.about-backdrop { position: relative; isolation: isolate; overflow: visible; }
.about-backdrop::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  width: 52vw;
  aspect-ratio: 145 / 137;
  left: -12vw;
  top: 58%;
  transform: translateY(-50%) rotate(55deg);
  background: url("../images/logo/brown/dolia-02-symbol-outline-brown.svg") center / contain no-repeat;
  opacity: .1;
}
h2 { font-size: clamp(32px, 3.2vw, 44px); line-height: 1.15; }
.about .eyebrow { margin-bottom: 22px; }
.about-copy { position: relative; padding-top: 40px; max-width: 440px; }
.about-copy::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 44px;
  width: 2px;
  height: 120px;
  background: var(--brown);
  opacity: .55;
  pointer-events: none;
}
.about-copy .lead { font-family: var(--serif); font-size: 25px; line-height: 1.45; margin: 0 0 24px; letter-spacing: -.02em; }
.about-copy > p:not(.lead) { font-size: 18px; line-height: 1.7; color: var(--muted); }
.signature { display: flex; gap: 16px; align-items: center; margin-top: 30px; font-family: var(--serif); font-style: italic; font-size: 16px; }
.signature-line { width: 32px; height: 1px; background: var(--brown); }

.contact { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 70px; padding: 68px; background: radial-gradient(ellipse at 100% 0, #a67a474d, transparent 65%), var(--brown); color: var(--paper); }
.contact .eyebrow { color: #ead8c5; }
.contact h2 em { color: #e2c3a3; }
.contact-heading > p:last-child { font-size: 18px; line-height: 1.7; max-width: 360px; margin: 25px 0 0; color: #f0e3d6; }
.social-link { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 25px 0; border-bottom: 1px solid #b78c6d; font-family: var(--serif); font-size: 30px; }
a.social-link:hover { color: #e2c3a3; }
.social-status { font: 14px "Segoe UI", Arial, sans-serif; letter-spacing: .04em; }
a.social-link .social-status { font-size: 24px; }
.contact-note { font-size: 15px; color: #ead8c5; line-height: 1.7; margin-top: 20px; }
.contact-email .social-name { min-width: 0; }
.contact-email [data-text] { min-width: 0; overflow-wrap: anywhere; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 25px; padding-block: 40px; }
.site-footer > p { font-size: 15px; color: var(--muted); }
.load-error { position: fixed; inset: auto 16px 16px; z-index: 20; margin: 0; padding: 20px; background: var(--paper); color: var(--ink); border: 1px solid var(--brown); font-size: 14px; }

.social-name { display: inline-flex; align-items: center; gap: 10px; }
.social-icon { width: 24px; height: 24px; flex-shrink: 0; }
.social-dock { position: fixed; z-index: 6; bottom: 20px; right: 24px; max-width: calc(100% - 48px); padding: 16px 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); box-shadow: 0 4px 24px #44302426; }
.social-dock > p { margin: 0 0 10px; font-size: 16px; font-weight: 600; }
.social-dock {
  transition: opacity .3s ease, transform .3s ease, visibility 0s;
}
.social-dock.is-hidden {
  opacity: 0;
  transform: translateY(16px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, visibility 0s .3s;
}
.social-dock [data-social-links] { display: flex; flex-wrap: wrap; gap: 24px; }
.social-dock .social-link { padding: 0; border: 0; flex-direction: column; align-items: flex-start; gap: 5px; font: 16px "Segoe UI", Arial, sans-serif; }
.social-dock a.social-link:hover { color: var(--brown); text-decoration: underline; }
.social-dock .social-status { color: var(--muted); }
.social-dock a .social-status { display: none; }
.gallery img:first-child { width: min(100%, 60svh); height: auto; margin-inline: auto; }

@media (min-width: 1500px) { .hero { gap: 56px; } }
@media (max-width: 1000px) {
  .site-header, .hero, .section, .site-footer { width: calc(100% - 64px); }
  .hero, .about { gap: 32px; }
  .about-copy::before { left: -16px; }
  h1 { font-size: clamp(40px, 5vw, 54px); }
  .contact { padding: 44px; gap: 40px; }
}
@media (max-width: 700px) {
  .site-header, .hero, .section, .site-footer { width: calc(100% - 40px); }
  .site-header { min-height: 80px; gap: 12px; flex-wrap: wrap; padding-block: 12px; }
  .brand img { width: 92px; }
  nav { gap: 12px; font-size: 15px; }
  .hero { grid-template-columns: 1fr; gap: 30px; padding-block: 14px 48px; }
  .hero::before { inset: 35% 0 0; }
  .hero::after { display: none; }
  .hero-copy { padding: 16px 0 0; }
  .hero-visual { grid-row: 1; }
  .gallery img:first-child { width: min(100%, 36svh); height: auto; border-radius: 70px 70px 0 0; }
  .image-caption { flex-wrap: wrap; gap: 4px 16px; }
  .social-dock { bottom: 0; right: 0; width: 100%; max-width: none; border-radius: 0; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); }
  .social-dock [data-social-links] { justify-content: space-between; gap: 12px; }
  .eyebrow { font-size: 14px; margin-bottom: 20px; }
  h1 { font-size: clamp(36px, 8vw, 46px); }
  .intro { max-width: 440px; margin: 18px 0; font-size: 20px; }
  .gallery img { border-radius: 160px 160px 0 0; }
  .image-caption { font-size: 14px; letter-spacing: .07em; }
  .about { grid-template-columns: 1fr; gap: 22px; padding-block: 50px; }
  .about-backdrop::before { width: 116vw; left: -64vw; opacity: .08; }
  h2 { font-size: 36px; }
  .about-copy { padding: 0; max-width: none; }
  .about-copy::before { display: none; }
  .about-copy .lead { font-size: 23px; }
  .contact { grid-template-columns: 1fr; padding: 34px 26px; gap: 20px; }
  .contact h2 { font-size: 36px; }
  .social-link { font-size: 28px; padding-block: 22px; }
  .site-footer { flex-wrap: wrap; gap: 20px; padding-block: 30px; }
  .site-footer img { width: 100px; height: auto; }
  .site-footer > p { order: 3; width: 100%; margin: 0; }
}
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .65, .3, 1);
}
.reveal.is-visible, .reveal:focus-within { opacity: 1; transform: translateY(0); }
.hero-copy .reveal:nth-child(2) { transition-delay: .08s; }
.hero-copy .reveal:nth-child(3) { transition-delay: .16s; }
.gallery img { transition: opacity .8s ease, transform .8s cubic-bezier(.2, .65, .3, 1), box-shadow .3s ease; }
.social-icon { transition: transform .25s ease; }
nav a, .social-link { transition: color .25s ease, border-color .25s ease; }
@media (hover: hover) and (pointer: fine) {
  .gallery img.is-visible:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -20px #68432280; }
  a.social-link:hover .social-icon { transform: translateY(-3px) rotate(-5deg); }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  * { transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .gallery img.is-visible:hover, a.social-link:hover .social-icon { transform: none; }
}
@media print {
  .reveal { opacity: 1; transform: none; }
}
