/* Self-hosted Google Fonts (OFL, licences in fonts/). latin-ext carries č š ž. */
/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/cormorant-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/cormorant-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/cormorant-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/cormorant-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(fonts/manrope-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(fonts/manrope-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


:root {
  --plum: #4a2f38;
  --clay: #d4866a;
  --blush: #efd6e2;
  --cream: #f8f3ef;
  --ink: #3a2320;
  --soft: #6e5550;
  --rust: #8a3f27;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", ui-sans-serif, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: min(1080px, 100% - 2 * clamp(20px, 6vw, 64px));
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 300 clamp(1rem, 0.95rem + 0.25vw, 1.125rem) / 1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 0.5em;
}

h2 { font-size: clamp(2.2rem, 1.6rem + 2.5vw, 3.4rem); }
h3 { font-size: 1.7rem; margin-bottom: 0.3em; }
em { font-family: var(--serif); font-size: 1.15em; }
p { margin: 0 0 1em; }

a { color: var(--rust); }

:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }

.wrap { width: var(--wrap); margin-inline: auto; }

/* Header sits on top of the hero. */
.top {
  position: absolute;
  inset: 0 0 auto;
  width: var(--wrap);
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 24px;
  z-index: 1;
}
.top a { color: var(--cream); text-decoration: none; }
.mark { font: 400 1.9rem/1 var(--serif); letter-spacing: 0.04em; }
.top nav a { font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase; }

/* Hero: one slow, drifting gradient. The first layer is a plum veil that does
   not move, so the light text stays readable at every point of the drift. */
.hero {
  position: relative;
  min-height: min(100svh, 860px);
  display: grid;
  align-items: center;
  color: var(--cream);
  background:
    linear-gradient(90deg, rgb(74 47 56 / 0.85) 0%, rgb(74 47 56 / 0.55) 40%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 75% 40%, var(--blush) 0%, transparent 70%),
    radial-gradient(ellipse 50% 70% at 55% 60%, var(--clay) 0%, transparent 75%),
    var(--plum);
  background-size: 100% 100%, 140% 140%, 140% 140%;
  animation: drift 24s ease-in-out infinite alternate;
  overflow: hidden;
}
@keyframes drift {
  from { background-position: 0 0, 0% 50%, 0% 50%; }
  to   { background-position: 0 0, 50% 35%, 50% 35%; }
}
/* On a phone the text is as wide as the screen, so the veil covers all of it. */
@media (max-width: 640px) {
  .hero {
    background-image:
      linear-gradient(90deg, rgb(74 47 56 / 0.8) 0%, rgb(74 47 56 / 0.6) 70%, rgb(74 47 56 / 0.35) 100%),
      radial-gradient(ellipse 60% 80% at 75% 40%, var(--blush) 0%, transparent 70%),
      radial-gradient(ellipse 50% 70% at 55% 60%, var(--clay) 0%, transparent 75%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero { animation: none; }
  html { scroll-behavior: auto; }
}

.hero .wrap { padding-block: 120px 80px; }
.hero h1 {
  font-size: clamp(3rem, 1.6rem + 6vw, 6.2rem);
  max-width: 11ch;
  margin-bottom: 0.35em;
}
.hero h1 em { font-size: 1em; }
.hero p {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  max-width: 30ch;
  letter-spacing: 0.02em;
}

.button {
  display: inline-block;
  margin-top: 1.2em;
  padding: 0.85em 2.2em;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: 500 0.85rem/1 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.hero .button:hover { background: var(--cream); color: var(--plum); }

section { padding-block: clamp(72px, 12vw, 140px); }

.intro { text-align: center; }
.intro p {
  font: 400 clamp(1.5rem, 1.2rem + 1.4vw, 2.3rem) / 1.35 var(--serif);
  max-width: 28ch;
  margin-inline: auto;
}

.ways { padding-top: 0; }
.ways ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(32px, 5vw, 64px);
}
.ways li { border-top: 1px solid var(--clay); padding-top: 1.2em; }
.ways p { color: var(--soft); }

.about { background: var(--blush); }
.about .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}
/* Placeholder until there is a photo: swap this div for an <img>. */
.photo {
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  background:
    radial-gradient(circle at 30% 30%, var(--cream), transparent 60%),
    linear-gradient(160deg, var(--clay), var(--plum));
}

.contact .wrap { max-width: 620px; }
.contact h2, .contact .lead { text-align: center; }
.contact .lead { color: var(--soft); margin-bottom: 2.5em; }

form { display: grid; gap: 1.3em; }
label { display: grid; gap: 0.4em; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--soft); }
input, textarea {
  font: 300 1.05rem/1.5 var(--sans);
  color: var(--ink);
  padding: 0.8em 1em;
  border: 1px solid #d8c6bd;
  border-radius: 14px;
  background: #fff;
  letter-spacing: normal;
  text-transform: none;
}
textarea { min-height: 9em; resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--clay); outline-offset: 0; border-color: transparent; }
form .button { justify-self: center; color: var(--plum); }
form .button:hover { background: var(--plum); color: var(--cream); }
.status { min-height: 1.7em; text-align: center; color: var(--rust); margin: 0; }

footer {
  padding: 40px 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--soft);
  border-top: 1px solid #eadfd8;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
