/* PDXCCF shared foundation — fonts, tokens, base elements, header/nav, footer, buttons, typography utilities.
   Every page links this. Page-specific sections (hero, feature grids, etc.) belong in a page CSS file, not here. */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/fraunces-400.woff2") format("woff2");
}

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/fraunces-700.woff2") format("woff2");
}

@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/fraunces-400-italic.woff") format("woff");
}

:root {
  --cocoa-950: #21100b;
  --cocoa-900: #2a130d;
  --cocoa-800: #3e1f15;
  --cocoa-700: #5d3222;
  --cream: #fff8ed;
  --paper: #f8ead7;
  --ink: #2a1710;
  --muted: #725f53;
  --orange: #ed8a2f;
  --orange-dark: #b95516;
  --pink: #d97a63;
  --lime: #a6ad5f;
  --sky: #6fa3ab;
  --line: rgb(42 23 16 / 16%);
  --shadow: 0 1.25rem 4rem rgb(33 16 11 / 20%);
  --radius: 1.5rem;
  --page: min(1140px, calc(100% - 3rem));
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: ui-rounded, "Avenir Next", Avenir, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  color-scheme: light;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--orange-dark);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: .75rem;
  left: .75rem;
  transform: translateY(-200%);
  padding: .7rem 1rem;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font-weight: 800;
}

.skip-link:focus { transform: translateY(0); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

h1, h2, h3, p { text-wrap: pretty; }

.eyebrow {
  margin: 0 0 .8rem;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.display-title {
  max-width: 13ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6vw, 5.8rem);
  letter-spacing: -.01em;
  line-height: .95;
}

.display-title em { color: var(--orange-dark); font-weight: 400; }

.large-copy {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

/* Heading + supporting-copy two-column layout -- shared since it's now used on two pages */

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .7fr);
  align-items: end;
  gap: clamp(2.5rem, 7vw, 7rem);
}

@media (max-width: 860px) {
  .intro-grid { grid-template-columns: 1fr; }
}

.button {
  display: inline-flex;
  min-height: 3.2rem;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .85rem 1.25rem;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--orange);
  color: var(--cocoa-950);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .07em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover {
  background: #ffa246;
  transform: translateY(-2px);
}

.icon-arrow-ne {
  width: .72em;
  height: .72em;
  flex: none;
  vertical-align: -.05em;
}

.add-to-calendar-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .65rem;
}

.button-small {
  display: inline-flex;
  align-items: center;
  padding: .4rem .8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 160ms ease, background 160ms ease;
}

.button-small:hover {
  border-color: var(--orange-dark);
  background: var(--paper);
}

.button--light {
  border-color: rgb(255 248 237 / 55%);
  background: rgb(255 248 237 / 10%);
  color: var(--cream);
}

.button--light:hover { background: rgb(255 248 237 / 20%); }

.button--dark {
  background: var(--cocoa-900);
  color: var(--cream);
}

.button--dark:hover { background: var(--cocoa-700); }

/* Maker/sponsor logo card -- shared since it's now used on two pages (Home's marquee, Makers' full directory) */

.maker-logo {
  position: relative;
  display: grid;
  min-height: 9rem;
  padding: .6rem;
  border: 1px solid rgb(255 248 237 / 15%);
  border-radius: 1rem;
  background: var(--cream);
  place-items: center;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease;
}

.maker-logo[href]:hover {
  border-color: var(--orange);
  transform: translateY(-3px);
}

.maker-logo[href]::after,
.sponsor-logo[href]::after {
  position: absolute;
  top: .55rem;
  right: .7rem;
  color: var(--cocoa-700);
  content: "↗︎";
  font-size: .8rem;
  font-weight: 900;
}

.maker-logo[data-external="false"]::after { content: "→︎"; }

.maker-logo img {
  width: 100%;
  max-width: 9.5rem;
  max-height: 6.5rem;
  backface-visibility: hidden;
  object-fit: contain;
}

/* Woodlark host-hotel band + app-download band -- shared since it's now used on all 5 pages */

.hotel-band {
  position: relative;
  isolation: isolate;
  min-height: 15rem;
  overflow: hidden;
  background: var(--cocoa-900) url("../images/photo-woodlark-2.png") right center / auto 175% no-repeat;
  color: var(--cream);
}

.hotel-band::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgb(33 16 11 / 94%) 0%, rgb(33 16 11 / 82%) 43%, rgb(33 16 11 / 22%) 76%);
  content: "";
}

.hotel-band .wrap {
  display: grid;
  min-height: 15rem;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
}

.hotel-offer p { margin: 0; }

.hotel-offer strong {
  display: block;
  margin-top: .35rem;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.hotel-logo {
  width: clamp(10rem, 18vw, 14rem);
  filter: drop-shadow(0 .35rem 1rem rgb(33 16 11 / 30%));
}

.hotel-action { justify-self: center; }

.hotel-action .button {
  min-width: 10rem;
  background: var(--cream);
  color: var(--cocoa-950);
}

.hotel-action .button:hover { background: #fff; }

.app-band {
  padding: 3rem 0;
  background: var(--sky);
}

.app-band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.app-copy h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.6rem);
  letter-spacing: -.005em;
  line-height: 1;
}

.app-copy p { margin: .6rem 0 0; }

.app-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .75rem;
}

.app-badges img { width: auto; height: 3rem; }

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  background: rgb(33 16 11 / 50%);
  border-bottom: 1px solid rgb(255 248 237 / 22%);
  color: var(--cream);
}

.nav {
  display: flex;
  min-height: 5.2rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-size: .9rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: .55rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(.9rem, 2vw, 1.8rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a:not(.button) {
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links a:not(.button):hover { text-decoration: underline; text-underline-offset: .35rem; }

.nav-links a[aria-current="page"],
.mobile-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: .35rem;
  text-decoration-thickness: 2px;
}

.brand[aria-current="page"] { opacity: .72; }

.mobile-nav { display: none; }

/* Home's .site-header relies on a photo showing through a 50%-opacity bar;
   pages with no hero photo need their own solid ground instead. */
.site-header--solid {
  background: var(--cocoa-950);
  border-bottom: 1px solid rgb(255 248 237 / 12%);
}

.site-footer {
  padding: 4rem 0 2rem;
  background: var(--cocoa-950);
  color: var(--cream);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr repeat(2, .6fr);
  gap: 2rem;
}

.footer-title {
  max-width: 10ch;
  margin: 1.2rem 0 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.6rem);
  letter-spacing: -.01em;
  line-height: .95;
}

.footer-links h2 {
  margin: 0 0 .8rem;
  color: var(--orange);
  font-size: .72rem;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.footer-links ul { margin: 0; padding: 0; list-style: none; }
.footer-links li + li { margin-top: 0; }
.footer-links a { display: inline-block; padding: .65rem 0; color: rgb(255 248 237 / 78%); text-underline-offset: .2rem; }

.footer-map-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.footer-map-icon {
  width: 1rem;
  height: 1rem;
  flex: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgb(255 248 237 / 16%);
  color: rgb(255 248 237 / 55%);
  font-size: .75rem;
}

.footer-bottom a {
  color: inherit;
  text-underline-offset: .2rem;
}

@media (max-width: 860px) {
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }

  .mobile-nav summary {
    display: grid;
    width: 3rem;
    height: 3rem;
    cursor: pointer;
    list-style: none;
    place-items: center;
  }

  .mobile-nav summary::-webkit-details-marker { display: none; }

  .icon-menu {
    width: 1.3rem;
    height: 1.3rem;
  }

  .mobile-nav[open] ul {
    position: absolute;
    inset: 100% 0 auto 0;
    margin: 0;
    padding: .5rem 1.5rem 1rem;
    background: var(--cream);
    color: var(--ink);
    box-shadow: var(--shadow);
    list-style: none;
  }

  .mobile-nav li + li { border-top: 1px solid var(--line); }
  .mobile-nav a { display: block; padding: .85rem; font-weight: 850; text-decoration: none; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / 3; }
}

@media (max-width: 620px) {
  :root { --page: min(1140px, calc(100% - 2rem)); }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { display: block; }

  .hotel-band {
    min-height: 22rem;
    background-position: 68% center;
    background-size: auto 120%;
  }

  .hotel-band::before {
    background: linear-gradient(90deg, rgb(33 16 11 / 92%), rgb(33 16 11 / 62%));
  }

  .hotel-band .wrap {
    min-height: 22rem;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 1.5rem;
  }

  .hotel-logo,
  .hotel-action {
    grid-column: auto;
    grid-row: auto;
    justify-self: start;
  }

  .app-band .wrap { display: block; }
  .app-badges { justify-content: flex-start; margin-top: 1.5rem; }
  .app-badges img { height: 2.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
