/* ===== Fonts (files live in the /fonts folder, so they work in every country) ===== */
@font-face {
  font-family: "Pinyon Script";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/pinyon-script.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/cormorant-garamond.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/cormorant-garamond-italic.woff2") format("woff2");
}

:root {
  --blue: #b3cee5;
  --ink: #2f3a46; /* dark, so the text is easy to read */
  --ink-soft: #55606b;
  --script: "Pinyon Script", cursive;
  --serif: "Cormorant Garamond", Georgia, serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
}

/* The marble photo fills the whole screen (portrait version first) */
main {
  min-height: 100vh;
  padding: 1.5rem;
  display: grid;
  place-items: center; /* centers the card horizontally and vertically */
  background: #c9d8ef url("images/background.jpg") center / cover no-repeat;
}

/* Wide screens get the HD landscape version */
@media (orientation: landscape) {
  main {
    background-image: url("images/background-hd.jpg");
  }
}

/* White card with a double blue line, like the invitation pieces */
.card {
  width: 100%;
  max-width: 640px;
  padding: 2.5rem 2rem 3rem;
  text-align: center;
  background: rgba(255, 253, 247, 0.88);
  border: 1px solid var(--blue);
  outline: 1px solid var(--blue); /* second line, a little outside the first */
  outline-offset: 6px;
  box-shadow: 0 6px 24px rgba(40, 60, 80, 0.15);
}

/* The drawing never gets wider than the card, and keeps its proportions */
.venue {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto 1.5rem;
  border: 1px solid var(--blue);
}

.script {
  margin: 0;
  font-family: var(--script);
  font-weight: normal;
  font-size: clamp(3rem, 12vw, 5rem);
  line-height: 1.2;
}

.place {
  margin: 1rem 0 0;
  font-size: 1.4rem;
  font-style: italic;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
