@font-face {
  font-family: "Bodoni Moda";
  src: url("assets/fonts/bodoni-moda-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --paper: #f5f2e9;
  --muted: #d5d7cd;
  --accent: #adca7b;
}

* { box-sizing: border-box; }

html { background: #19231c; }

body {
  margin: 0;
  color: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 24, 17, .88) 0%, rgba(12, 24, 17, .66) 42%, rgba(12, 24, 17, .15) 100%),
    linear-gradient(0deg, rgba(10, 20, 14, .82), transparent 38%),
    url("assets/cork-background.webp") center center / cover no-repeat;
}

.page {
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(26px, 4vw, 64px) clamp(24px, 6.25vw, 120px) 32px;
  display: flex;
  flex-direction: column;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: block;
  width: clamp(170px, 15vw, 220px);
  height: auto;
  filter: brightness(0) invert(1);
}

.origin {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: .12em;
  text-align: right;
  text-transform: uppercase;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 50px 0 64px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.status-dot {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(173, 202, 123, .1);
}

h1 {
  margin: 0;
  font-family: "Bodoni Moda", Didot, "Bodoni MT", Georgia, serif;
  font-size: clamp(46px, 5.65vw, 88px);
  font-weight: 400;
  font-optical-sizing: auto;
  line-height: 1.12;
  letter-spacing: -.025em;
}

h1 em { color: #d8dfc5; font-style: normal; font-weight: 400; }

.intro {
  margin: 26px 0 28px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

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

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 42px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--paper);
  border-radius: 2px;
  background: var(--paper);
  color: #203327;
  font-size: 12px;
  transition: background .2s, color .2s;
}

.contact-button span { font-size: 19px; }
.contact-button:hover { background: transparent; color: var(--paper); }

.contacts {
  display: grid;
  grid-template-columns: 1fr 1fr 1.35fr;
  gap: 28px;
  padding-top: 23px;
  border-top: 1px solid rgba(245, 242, 233, .25);
}

.contact-item h2 {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.contact-item a, address { font-size: 13px; line-height: 1.7; }
.contact-item a { display: inline-block; padding: 3px 0; text-underline-offset: 5px; }
.contact-item a:hover { text-decoration: underline; }
address { font-style: normal; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }

@media (min-width: 1600px) {
  .page { padding-bottom: 44px; }
  .intro { font-size: 16px; }
  .contact-item a, address { font-size: 14px; }
}

@media (max-width: 600px) {
  body::before {
    background:
      linear-gradient(90deg, rgba(12, 24, 17, .88), rgba(12, 24, 17, .5)),
      linear-gradient(0deg, rgba(10, 20, 14, .85), transparent 55%),
      url("assets/cork-background.webp") 57% center / cover no-repeat;
  }
  .page { padding: 26px 24px 24px; }
  .logo { width: 160px; }
  .origin { display: none; }
  .main { padding: 42px 0; }
  .eyebrow { margin-bottom: 20px; font-size: 9px; letter-spacing: .16em; }
  h1 { font-size: clamp(38px, 9.7vw, 58px); }
  .intro { font-size: 13px; margin: 22px 0 24px; }
  .contacts { grid-template-columns: 1fr 1fr; gap: 18px 14px; padding-top: 20px; }
  .contact-item h2 { margin-bottom: 5px; }
  .contact-item a, address { font-size: 12px; }
  .address { grid-column: 1 / -1; }
}

@media (max-height: 800px) {
  .page { padding-top: 24px; padding-bottom: 24px; }
  .logo { width: 160px; }
  .main { padding-top: 24px; padding-bottom: 28px; }
  .eyebrow { margin-bottom: 18px; }
  h1 { font-size: clamp(38px, min(5.65vw, 8.5svh), 68px); }
  .intro { margin-top: 18px; margin-bottom: 20px; font-size: 13px; line-height: 1.7; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
