:root {
  color-scheme: light;
  --paper: #f7f3ea;
  --surface: #fffdf8;
  --ink: #173f46;
  --muted: #62767a;
  --line: #d7d3c8;
  --sea: #1f6d77;
  --sea-dark: #164e56;
  --coral: #b75b3d;
  --sand: #eee3cd;
  --shadow: 0 18px 45px rgb(29 52 52 / 10%);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #14252a;
  --surface: #1b3035;
  --ink: #f2eadb;
  --muted: #b6c2bd;
  --line: #365055;
  --sea: #72b7bd;
  --sea-dark: #a4d9d6;
  --coral: #e29472;
  --sand: #294247;
  --shadow: 0 18px 45px rgb(0 0 0 / 22%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--sea); }
button, input { font: inherit; }
button { cursor: pointer; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 20; padding: .75rem 1rem; background: var(--ink); color: var(--surface); }
.skip-link:focus { top: 1rem; }
.wrap { width: min(1160px, calc(100% - 2.5rem)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid color-mix(in srgb, var(--line), transparent 18%); background: color-mix(in srgb, var(--paper), transparent 8%); backdrop-filter: blur(16px); }
.bar { min-height: 74px; display: flex; align-items: center; gap: 1.7rem; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: .75rem; min-width: max-content; font-weight: 720; letter-spacing: -.02em; }
.brand img { width: 34px; height: 34px; }
.nav { display: flex; gap: 1rem; align-items: center; }
.nav a { color: var(--muted); font-size: .92rem; }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.controls { display: flex; align-items: center; gap: .45rem; }
.account-slot { display: flex; align-items: center; gap: .45rem; }
.account-name { max-width: 7rem; overflow: hidden; color: var(--sea); font-size: .85rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.account-name:hover { color: var(--sea-dark); text-decoration: underline; }
.account-button { min-height: 34px; padding: .35rem .68rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: var(--surface); font-size: .85rem; }
.account-button:hover { border-color: var(--sea); color: var(--sea); }
.control, .lang-button { border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: var(--surface); min-height: 34px; padding: .35rem .68rem; }
.lang-button[aria-pressed="true"] { color: var(--surface); background: var(--ink); border-color: var(--ink); }
.theme-select { display: flex; gap: .15rem; border: 1px solid var(--line); border-radius: 999px; padding: .18rem; background: var(--surface); }
.theme-select button { border: 0; border-radius: 999px; color: var(--muted); background: transparent; padding: .23rem .45rem; font-size: .79rem; }
.theme-select button[aria-pressed="true"] { color: var(--surface); background: var(--sea); }
.hero { position: relative; overflow: clip; padding: clamp(4.5rem, 10vw, 8rem) 0 4.5rem; }
.hero::before { content: ""; position: absolute; width: 38rem; height: 38rem; border: 1px solid var(--line); border-radius: 50%; right: -14rem; top: -19rem; opacity: .7; }
.eyebrow { color: var(--coral); font-size: .76rem; font-weight: 760; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 780px; margin-bottom: 1.25rem; font-family: Georgia, "Times New Roman", serif; font-weight: 500; font-size: clamp(3rem, 7vw, 5.6rem); line-height: .98; letter-spacing: -.06em; }
h2 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 500; line-height: 1.08; letter-spacing: -.04em; }
h3 { margin-bottom: .4rem; font-size: 1.08rem; }
.lead { max-width: 650px; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .65rem 1rem; border: 1px solid var(--sea); border-radius: .6rem; background: var(--sea); color: white; font-weight: 700; }
.button:hover { color: white; background: var(--sea-dark); }
.button.secondary { border-color: var(--line); color: var(--ink); background: transparent; }
.map-frame { position: relative; margin-top: 3rem; overflow: hidden; min-height: 240px; border: 1px solid var(--line); border-radius: 1.1rem; background: var(--sand); box-shadow: var(--shadow); }
.map-frame::before, .map-frame::after { content: ""; position: absolute; border: 1px solid color-mix(in srgb, var(--sea), transparent 65%); border-radius: 40% 60% 55% 45%; }
.map-frame::before { width: 60%; height: 140%; left: 8%; top: -34%; transform: rotate(-8deg); background: color-mix(in srgb, var(--surface), transparent 32%); }
.map-frame::after { width: 32%; height: 75%; right: 11%; bottom: -27%; background: color-mix(in srgb, var(--coral), transparent 80%); }
.map-caption { position: relative; z-index: 1; display: flex; align-items: end; min-height: 260px; padding: 1.5rem; color: var(--sea-dark); font-family: Georgia, serif; font-size: clamp(1.35rem, 2.6vw, 2.1rem); line-height: 1.12; overflow-wrap: anywhere; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; gap: 2rem; align-items: end; margin-bottom: 2rem; }
.section-heading p { max-width: 500px; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card { min-height: 195px; padding: 1.35rem; border: 1px solid var(--line); border-radius: .9rem; background: var(--surface); }
.card p { color: var(--muted); }
.number { color: var(--coral); font-size: .8rem; font-weight: 750; letter-spacing: .08em; }
.export-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.tag { padding: .28rem .55rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .83rem; }
.login-panel { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; padding: clamp(1.4rem, 4vw, 2.5rem); border: 1px solid var(--line); border-radius: 1rem; background: var(--sand); }
.login-panel p { color: var(--muted); }
.form { display: grid; gap: .85rem; align-content: start; }
label { color: var(--muted); font-size: .85rem; }
.field { width: 100%; margin-top: .3rem; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: .55rem; color: var(--ink); background: var(--surface); }
.password { position: relative; display: block; }
.password .field { padding-right: 3rem; }
.password button { position: absolute; right: .45rem; bottom: .48rem; display: grid; width: 2rem; height: 2rem; place-items: center; margin: 0; border: 0; border-radius: .45rem; color: var(--sea); background: transparent; }
.password button:hover, .password button:focus-visible { background: color-mix(in srgb, var(--sea), transparent 88%); outline: none; }
.password button img { width: 1rem; height: 1rem; }
.fine { color: var(--muted); font-size: .86rem; }
.page-intro { padding: 4rem 0 2rem; }
.page-intro h1 { font-size: clamp(2.7rem, 6vw, 4.4rem); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery-empty { grid-column: 1 / -1; padding: 2rem; border: 1px dashed var(--line); border-radius: .9rem; color: var(--muted); text-align: center; }
.legal { max-width: 760px; }
.legal section { padding: 1.7rem 0; border-bottom: 1px solid var(--line); }
.legal p, .legal li { color: var(--muted); }
.footer { padding: 2rem 0; color: var(--muted); font-size: .9rem; }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.not-found { display: grid; min-height: 100vh; place-items: center; text-align: center; }
.not-found h1 { font-size: clamp(5rem, 20vw, 12rem); color: var(--coral); }
@media (max-width: 820px) { .bar { gap: .7rem; } .nav { display: none; } .grid, .gallery-grid { grid-template-columns: 1fr; } .login-panel { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .account-name { display: none; } }
@media (max-width: 540px) { .wrap { width: min(100% - 1.5rem, 1160px); } .brand span { display: none; } .theme-select button { padding-inline: .32rem; } .controls { gap: .2rem; } .lang-button { padding: .35rem .5rem; } .account-button { padding-inline: .5rem; } }

/* Gallery headings stay compact on desktop; small screens may wrap naturally. */
.gallery-page .page-intro h1 { max-width: none; white-space: nowrap; font-size: clamp(2.4rem, 4.8vw, 4rem); }
.gallery-page .page-intro .lead { white-space: nowrap; }
@media (max-width: 700px) {
  .gallery-page .page-intro h1,
  .gallery-page .page-intro .lead { white-space: normal; }
}