/* Opening line: Cinzel (SIL OFL 1.1, see Cinzel-OFL.txt), static SemiBold (600) instance.
   Replaces a broken PDF-extracted Copperplate subset (blank G, D, B, R, 0, 2, 6). */
@font-face {
  font-family: "NWC Cinzel";
  src: url("Cinzel-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("CormorantGaramond.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("CormorantGaramond-Italic.ttf") format("truetype");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --cream: #fbf8f1;
  --sand: #f6f0e6;
  --ink: #1a1612;
  --muted: #4a3f33;
  --gold-d: #7a5326;
  --line: #e7dfd0;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { height: 100%; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background-color: var(--cream);
  font-family: "Helvetica Neue", Arial, sans-serif;
}

.wood-top,
.wood-band {
  height: 8px;
  background: url("wood-medium-dark-800.jpg") center / 800px repeat;
  flex: none;
}

main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 32px 24px 16px;
  min-height: 0;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: none;
  width: 100%;
}

.logo {
  width: min(480px, 78vw);
  height: auto;
  object-fit: contain;
  display: block;
}

h1 {
  margin: 40px 0 0;
  line-height: 0;
}

.wordmark {
  display: block;
  width: min(420px, 82vw);
  height: auto;
  margin: 0 auto;
}

.tagline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(420px, 86vw);
  margin: 16px auto 0;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(0.82rem, 2.2vw, 1.02rem);
  letter-spacing: 0.14em;
  color: #4a2e14;
  white-space: nowrap;
}
.tagline span { display: block; }
.tagline i {
  display: block;
  flex: none;
  width: 7px;
  height: 11px;
  background: #c9a048;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.lower {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 28px 0 6px;
  min-height: 0;
}

.opening {
  font-family: "NWC Cinzel", "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-variant: small-caps;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  color: var(--gold-d);
  margin: 0;
}

.place {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(1.15rem, 2.8vw, 1.45rem);
  letter-spacing: 0.08em;
  color: var(--ink);
  margin: 0;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 96px;
  height: 12px;
  flex: none;
  margin: 0;
  border: 0;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #c9a048;
  opacity: 0.55;
}

.divider i {
  display: block;
  flex: none;
  width: 7px;
  height: 11px;
  background: #c9a048;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.line {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  color: var(--muted);
  margin: 0;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

footer {
  flex: none;
}

.legal {
  margin: 0;
  padding: 14px 20px 18px;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: #6b5f52;
}

@media (max-width: 500px) {
  main { padding: 36px 20px 12px; }
  .logo { width: min(340px, 84vw); height: auto; }
  h1 { margin-top: 28px; }
  .tagline { font-size: 0.78rem; letter-spacing: 0.07em; margin-top: 12px; }
  .opening { letter-spacing: 0.12em; }
  .place { letter-spacing: 0.05em; }
  .lower {
    flex: 0 0 auto;
    justify-content: flex-start;
    padding: 20px 0 0;
  }
  .divider { margin: 30px 0; }
  .line br.wide-only { display: none; }
}

/* ---- Caps & small caps lettering, cream (preview only) ---- */
.opening { text-transform: none; font-variant: normal; }
.wordmark { width: min(400px, 80vw); }

body { background: #f4ecdd url("finelinen.jpg") 0 0 / 800px repeat; }

.line { text-wrap: balance; }

body { background: #f2e9d8 url("finelinen-strong.jpg") 0 0 / 800px repeat; }

body { background: #f3ebdc url("finelinen-medium.jpg") 0 0 / 800px repeat; }

/* ---- Wide computer screens: logo left, lettering right, fills the page ---- */
@media (min-width: 1000px) and (min-aspect-ratio: 5/4) {
  main {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    grid-template-areas: "logo brand" "logo lower";
    align-content: center;
    justify-content: center;
    align-items: center;
    column-gap: 5vw;
    padding: 4vh 5vw;
  }
  .brand { display: contents; }
  .logo { grid-area: logo; width: min(72vh, 40vw); }
  h1, .tagline { grid-column: 2; }
  h1 { grid-row: 1; align-self: end; margin: 0 0 0; }
  .brand > h1 { margin-bottom: 0; }
  .wordmark { width: min(46vw, 820px); }
  .tagline { grid-row: 1; align-self: end; width: min(46vw, 820px); transform: translateY(calc(100% + 2.4vh)); font-size: clamp(1.05rem, 1.3vw, 1.5rem); }
  .tagline i { width: 9px; height: 14px; }
  .lower { grid-area: lower; flex: none; justify-content: flex-start; align-self: start; padding: 8vh 0 0; }
  .opening { font-size: clamp(1.5rem, 1.9vw, 2.3rem); }
  .divider { width: 140px; height: 14px; margin: 3vh 0; }
  .divider i { width: 9px; height: 14px; }
  .line { font-size: clamp(1.5rem, 1.85vw, 2.3rem); max-width: min(46vw, 820px); }
  .line br.wide-only { display: none; }
  .place { font-size: clamp(1.4rem, 1.7vw, 2.1rem); }
  .legal { font-size: 0.9rem; }
}

/* ---- Directions link + opening email sign-up ---- */
.place a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(201,160,72,.55); }
.place a:hover { color: var(--gold-d); }
.hp { position: absolute; left: -9999px; }
.signup { margin: 26px 0 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.signup-label {
  font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-weight: 500;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--muted); letter-spacing: .02em;
}
.signup-row { display: flex; width: min(420px, 86vw); border: 1px solid #b8955a; background: rgba(255,253,248,.85); }
.signup-row input {
  flex: 1 1 auto; min-width: 0; border: 0; background: transparent; padding: 12px 14px;
  font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.1rem; color: var(--ink); outline: none;
}
.signup-row button {
  flex: none; border: 0; cursor: pointer; padding: 0 18px; background: #6b4a24; color: #fbf8f1;
  font-family: "NWC Cinzel", Georgia, serif; font-weight: 600; font-size: .85rem; letter-spacing: .12em;
}
.signup-row button:hover { background: #7a5326; }
.signup-row:focus-within { box-shadow: 0 0 0 2px rgba(201,160,72,.35); }
@media (min-width: 1000px) and (min-aspect-ratio: 5/4) {
  .signup { margin-top: 3.2vh; }
  .signup-row { width: min(30vw, 520px); }
  .signup-label { font-size: clamp(1.15rem, 1.4vw, 1.6rem); }
  .signup-row input { font-size: 1.2rem; padding: 14px 16px; }
  .signup-row button { font-size: .95rem; padding: 0 24px; }
}
