/*
 * Stone Tower Winery LinkStack theme
 * Typography and button geometry mirror stonetowerwinery.com.
 */

@font-face {
  font-display: swap;
  font-family: "Lora";
  font-style: normal;
  font-weight: 400 700;
  src: url("extra/custom-assets/lora-v37-latin-normal-400-700.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Lora";
  font-style: italic;
  font-weight: 400 700;
  src: url("extra/custom-assets/lora-v37-latin-italic-400-700.woff2") format("woff2");
}

@font-face {
  font-family: "Lora Fallback";
  font-style: normal;
  font-weight: 400;
  src: local("Georgia");
  size-adjust: 104.916%;
  ascent-override: 95.886%;
  descent-override: 26.116%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Lora Fallback";
  font-style: normal;
  font-weight: 500;
  src: local("Georgia");
  size-adjust: 105.961%;
  ascent-override: 94.941%;
  descent-override: 25.859%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Lora Fallback";
  font-style: italic;
  font-weight: 400;
  src: local("Georgia Italic"), local("Georgia-Italic");
  size-adjust: 100.052%;
  ascent-override: 100.548%;
  descent-override: 27.386%;
  line-gap-override: 0%;
}

:root {
  --stw-gold: #b29659;
  --stw-ink: #171512;
  --stw-paper: #ffffff;
  --stw-focus: #2d261a;
  --stw-font: "Lora", "Lora Fallback", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  font-size: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: clamp(1rem, 5vw, 4rem) 1rem;
  background-color: #8b8178;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  color: var(--stw-ink);
  font-family: var(--stw-font) !important;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}

::selection {
  background: var(--stw-gold);
  color: var(--stw-paper);
}

/* LinkStack emits these hooks for animated themes. This design is intentionally still. */
.background-container,
.parallax-background,
.sharediv,
.copy-icon {
  display: none !important;
}

body > .container,
body .container:has(#avatar) {
  position: relative;
  width: min(100%, 41rem);
  max-width: 41rem;
  margin: 0 auto;
  padding: clamp(2.75rem, 7vw, 5rem) clamp(1.5rem, 8vw, 4.5rem);
  overflow: hidden;
  background: var(--stw-paper);
  border-radius: 0.7rem;
  box-shadow: 0 1.25rem 4rem rgba(24, 18, 10, 0.18);
  text-align: center;
}

body > .container > .row,
body > .container > .row > .column,
body .container:has(#avatar) > .row,
body .container:has(#avatar) > .row > .column {
  width: 100%;
  margin: 0 !important;
  padding: 0;
}

body > .container > .row > .column,
body .container:has(#avatar) > .row > .column {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#avatar {
  order: 10;
  display: block;
  width: min(82%, 24rem) !important;
  min-width: 0 !important;
  max-width: 24rem;
  height: auto !important;
  max-height: 8.5rem;
  margin: 0 auto;
  border: 0;
  border-radius: 0;
  object-fit: contain !important;
}

h1 {
  order: 20;
  margin: clamp(2rem, 6vw, 3.25rem) 0 clamp(2.25rem, 7vw, 3.5rem);
  color: var(--stw-ink) !important;
  font-family: var(--stw-font) !important;
  font-size: 2rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.column > center {
  order: 30;
  width: min(100%, 24.5rem);
}

.description-parent,
.description-parent * {
  color: #4e483e !important;
  font-family: var(--stw-font) !important;
}

.description-parent {
  padding: 0 0 1.25rem !important;
}

.description-parent:empty,
.description-parent p:empty {
  display: none;
}

.button-entrance {
  order: 40;
  width: min(88%, 21.5rem);
}

.social-icon-div {
  order: 50;
  display: grid !important;
  width: min(88%, 21.5rem) !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0;
}

.social-link[aria-label="Instagram"] {
  order: 1;
}

.social-link[aria-label="Facebook"] {
  order: 2;
}

.column > .container {
  order: 60;
  width: 100%;
  margin: 0;
  padding: 0;
}

.footer {
  margin-top: 1rem;
  color: #5d5549;
  font-family: var(--stw-font) !important;
  font-size: 0.875rem;
}

a {
  color: inherit;
}

.spacing {
  padding: 0;
}

@media (max-width: 34rem) {
  body {
    padding: 0.75rem;
    background-attachment: scroll !important;
  }

  body > .container,
  body .container:has(#avatar) {
    padding: 2.5rem 1.25rem 2.75rem;
    border-radius: 0.7rem;
  }

  #avatar {
    width: min(88%, 20rem) !important;
    max-height: 7.25rem;
  }

  h1 {
    font-size: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
