:root {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--brand-text);
  background:
    radial-gradient(circle at top, rgba(165, 106, 69, 0.18), transparent 38%),
    linear-gradient(180deg, var(--brand-surface), #fcfaf6 52%, #f3ebe1 100%);
  min-height: 100vh;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 16px;
}

.skip-link:focus {
  left: 16px;
  z-index: 100;
  background: var(--brand-paper);
  padding: 10px 14px;
  border-radius: 999px;
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--brand-paper) 72%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--brand-border) 70%, transparent);
}

.topbar__inner,
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand__mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--brand-primary), color-mix(in srgb, var(--brand-primary) 70%, #fff));
  color: white;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.brand__image {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  object-fit: cover;
  background: var(--brand-paper);
  border: 1px solid var(--brand-border);
}

.brand strong,
.admin-header h1,
.section h2,
.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.03em;
}

.brand span {
  display: block;
  color: var(--brand-muted);
  font-size: 0.92rem;
}

.nav {
  display: flex;
  gap: 24px;
  color: var(--brand-muted);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  overflow: clip;
}

.hero__image,
.hero__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__image {
  object-fit: cover;
}

.hero__overlay {
  background: linear-gradient(180deg, rgba(10, 7, 6, 0.08), rgba(10, 7, 6, 0.68));
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-block: 160px 76px;
  color: #fffdf7;
  max-width: 760px;
}

.eyebrow,
.section__label {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.74rem;
  color: color-mix(in srgb, currentColor 78%, transparent);
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.5rem, 10vw, 7.2rem);
  line-height: 0.92;
  max-width: 8ch;
}

.lead {
  margin: 20px 0 0;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  max-width: 44ch;
  color: color-mix(in srgb, #fff 84%, transparent);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--solid {
  background: var(--brand-primary);
  color: white;
}

.button--ghost {
  border-color: color-mix(in srgb, currentColor 18%, transparent);
  background: color-mix(in srgb, var(--brand-paper) 8%, transparent);
  color: inherit;
}

.section {
  padding: 96px 0;
}

.split,
.section__header,
.social-strip,
.contact-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.section h2 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1.02;
}

.section__copy,
.section__aside,
.contact-list {
  color: var(--brand-muted);
  font-size: 1.03rem;
  line-height: 1.75;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.gallery__item {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--brand-paper);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.contact-list {
  display: grid;
}

.contact-list a,
.contact-list span {
  padding: 18px 0;
  border-bottom: 1px solid var(--brand-border);
}

.footer {
  padding: 28px 0 42px;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--brand-muted);
  border-top: 1px solid var(--brand-border);
  padding-top: 22px;
}

.footer__links {
  display: flex;
  gap: 16px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.admin-body {
  background: linear-gradient(180deg, var(--brand-surface), #f5efe6 100%);
}

.admin-shell {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 64px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.panel,
.panel--login,
.notice {
  background: color-mix(in srgb, var(--brand-paper) 94%, white);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.panel,
.notice {
  padding: 24px;
}

.panel h2 {
  margin-top: 0;
  font-size: 1.6rem;
}

.admin-form {
  display: grid;
  gap: 14px;
}

.admin-form--grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-form label {
  display: grid;
  gap: 8px;
}

.admin-form span {
  font-size: 0.92rem;
  color: var(--brand-muted);
}

.admin-form input,
.admin-form textarea {
  width: 100%;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 13px 14px;
  color: var(--brand-text);
  font: inherit;
}

.admin-form input[type="color"] {
  padding: 6px;
  height: 50px;
}

.admin-form__full {
  grid-column: 1 / -1;
}

.notice {
  margin-bottom: 18px;
}

.notice--success {
  border-color: color-mix(in srgb, #3d7a55 40%, var(--brand-border));
}

.notice--error {
  border-color: color-mix(in srgb, #b14d39 40%, var(--brand-border));
}

@media (max-width: 900px) {
  .nav,
  .split,
  .section__header,
  .social-strip,
  .contact-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .social-links,
  .footer__inner {
    justify-content: flex-start;
  }

  .hero__content {
    padding-block: 140px 64px;
  }
}

@media (max-width: 640px) {
  .topbar__inner,
  .admin-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 18vw, 4.5rem);
  }

  .section {
    padding: 72px 0;
  }

  .admin-form--grid {
    grid-template-columns: 1fr;
  }
}