@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("./assets/fonts/dm-sans-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/instrument-serif-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --paper: #f5f4ef;
  --ink: #252c29;
  --muted: #62695f;
  --line: #dedfd6;
  --green: #47624e;
  --film-accent: #8b4d3e;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

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

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background: radial-gradient(ellipse at 50% 0, #ffffff80 0, transparent 66%);
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

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

.page-shell {
  width: min(1120px, calc(100% - 96px));
  min-height: 100svh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.masthead {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.wordmark svg {
  width: 30px;
  height: 30px;
  margin-right: 1px;
  color: var(--green);
}

.wordmark-dot {
  color: var(--green);
}

.masthead-note {
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 1.6px;
}

.intro {
  padding: 32px 0;
  text-align: center;
  animation: intro-appear 700ms ease both;
}

h1 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-size: clamp(78px, 9.3vw, 112px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -4.5px;
}

.name-dot {
  color: var(--green);
}

.destinations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  padding-bottom: 32px;
}

.destination {
  --card-accent: var(--green);
  position: relative;
  min-width: 0;
  overflow: hidden;
  display: block;
  border: 1px solid #dddfd6;
  border-radius: 15px;
  background: #fbfcf8;
  box-shadow: 0 3px 8px #28322903;
  transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
  animation: card-appear 750ms 100ms ease both;
}

.destination-film {
  --card-accent: var(--film-accent);
}

.destination-science {
  animation-delay: 200ms;
}

.site-preview {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.9;
  padding: 24px 24px 0;
  border-bottom: 1px solid #dddfd6;
}

.film-preview {
  background: #e9e2d7;
}

.science-preview {
  background: #e1e7dc;
}

.preview-window {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #ffffff6b;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 8px 30px #33392d1c;
  transform: translateY(8px);
  transition: transform 500ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

.window-bar {
  flex-shrink: 0;
  position: relative;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  color: #64655f;
  background: #f5f3ee;
  border-bottom: 1px solid #0000000a;
}

.window-controls {
  display: flex;
  gap: 4px;
}

.window-controls i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #cac9c1;
}

.window-controls i:first-child {
  background: #b79a8c;
}

.window-label {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 8px;
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: 0.15px;
}

.window-symbol {
  font-size: 12px;
  line-height: 1;
}

.preview-frame-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #0d0d0d;
}

.science-preview .preview-frame-wrap {
  background: #4a736b;
}

.preview-frame {
  position: absolute;
  display: block;
  width: 1280px;
  height: 800px;
  border: 0;
  pointer-events: none;
  transform-origin: top left;
}

.destination-link {
  display: block;
}

.destination-link::after {
  position: absolute;
  inset: 0;
  z-index: 3;
  content: "";
}

.preview-caption {
  position: absolute;
  right: 25px;
  bottom: 11px;
  z-index: 1;
  padding: 4px 6px;
  border-radius: 2px;
  color: #55594f;
  background: #f3f2eeda;
  font-size: 7px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 1.2px;
}

.destination-content {
  padding: 24px 28px 20px;
}

.destination-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.destination-category {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 9px;
  color: var(--card-accent);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.3px;
}

.destination-category > span {
  padding-right: 9px;
  border-right: 1px solid #cfd1c6;
  color: #6c7466;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 10px;
}

h2 {
  margin: 0;
  font-size: clamp(24px, 2.5vw, 30px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -1.1px;
}

.destination-arrow {
  width: 43px;
  height: 43px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid #daddd1;
  border-radius: 50%;
  color: var(--card-accent);
  transition: color 250ms ease, background-color 250ms ease, border-color 250ms ease;
}

.destination-arrow svg {
  width: 21px;
  height: 21px;
  transition: transform 250ms ease;
}

.destination-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid #e6e8df;
  color: #67705f;
  font-size: 10px;
  line-height: 1.5;
}

.visit-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #69715f;
  font-size: 10px;
  white-space: nowrap;
}

.visit-label > span {
  font-size: 16px;
  line-height: 12px;
  transition: transform 250ms ease;
}

.destination:focus-within,
.wordmark:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 6px;
}

.destination:focus-within .destination-arrow {
  color: #fff;
  background: var(--card-accent);
  border-color: var(--card-accent);
}

.footer {
  min-height: 64px;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  color: #67705f;
  font-size: 10px;
  letter-spacing: 0.1px;
}

.footer-signoff {
  display: flex;
  align-items: center;
  gap: 7px;
}

.footer-signoff > span {
  color: var(--green);
  font-size: 16px;
  line-height: 10px;
}

@media (hover: hover) and (pointer: fine) {
  .destination:hover {
    transform: translateY(-6px);
    border-color: #bec6b6;
    box-shadow: 0 17px 35px -20px #29352b47;
  }

  .destination:hover .preview-window {
    transform: translateY(1px);
  }

  .destination:hover .destination-arrow {
    color: #fff;
    background: var(--card-accent);
    border-color: var(--card-accent);
  }

  .destination:hover .destination-arrow svg {
    transform: translate(1px, -1px);
  }

  .destination:hover .visit-label > span {
    transform: translateX(3px);
  }
}

@media (min-width: 1600px) {
  .intro {
    padding-top: 72px;
    padding-bottom: 61px;
  }
}

@media (min-width: 901px) and (max-height: 800px) {
  .masthead {
    min-height: 64px;
  }

  .intro {
    padding: 26px 0 24px;
  }

  h1 {
    font-size: 96px;
  }

  .site-preview {
    aspect-ratio: 2.2;
    padding-top: 19px;
  }

  .destination-content {
    padding: 20px 26px 16px;
  }

  .destination-bottom {
    padding-top: 12px;
  }

  .destinations {
    padding-bottom: 22px;
  }

  .footer {
    min-height: 52px;
  }
}

@media (max-width: 900px) {
  .page-shell {
    width: calc(100% - 56px);
  }

  .masthead {
    min-height: 82px;
  }

  .masthead-note {
    font-size: 8px;
    letter-spacing: 1px;
  }

  .intro {
    padding-top: 46px;
    padding-bottom: 37px;
  }

  .destinations {
    gap: 20px;
    padding-bottom: 40px;
  }

  .site-preview {
    padding: 15px 15px 0;
    aspect-ratio: 1.5;
  }

  .preview-caption {
    display: none;
  }

  .destination-content {
    padding: 21px 20px 18px;
  }

  .destination-arrow {
    width: 35px;
    height: 35px;
  }

  .destination-arrow svg {
    width: 18px;
    height: 18px;
  }

  .destination-category {
    font-size: 8px;
    letter-spacing: 0.6px;
  }

  h2 {
    font-size: clamp(21px, 2.8vw, 26px);
    letter-spacing: -0.8px;
  }

  .destination-bottom {
    font-size: 9px;
  }

  .visit-label {
    gap: 5px;
    font-size: 9px;
  }
}

@media (max-width: 650px) {
  .page-shell {
    width: calc(100% - 40px);
    max-width: 480px;
  }

  .masthead {
    min-height: 73px;
  }

  .wordmark {
    gap: 6px;
    font-size: 13px;
  }

  .wordmark svg {
    width: 26px;
    height: 26px;
  }

  .masthead-note {
    max-width: 125px;
    font-size: 7px;
    line-height: 1.6;
    letter-spacing: 1px;
    text-align: right;
  }

  .intro {
    padding-top: 42px;
    padding-bottom: 35px;
  }

  h1 {
    font-size: clamp(63px, 17.6vw, 93px);
    letter-spacing: -2.9px;
  }

  .destinations {
    grid-template-columns: 1fr;
    gap: 23px;
    padding-bottom: 35px;
  }

  .destination {
    border-radius: 12px;
  }

  .site-preview {
    padding: 19px 19px 0;
    aspect-ratio: 1.7;
  }

  .window-bar {
    height: 23px;
  }

  .destination-content {
    padding: 22px 23px 19px;
  }

  .destination-category {
    margin-bottom: 9px;
    font-size: 8px;
    letter-spacing: 1px;
  }

  h2 {
    font-size: 28px;
    letter-spacing: -1px;
  }

  .destination-arrow {
    width: 39px;
    height: 39px;
  }

  .destination-bottom,
  .visit-label {
    font-size: 9px;
  }

  .footer {
    min-height: 67px;
    font-size: 9px;
  }
}

@media (max-width: 360px) {
  .page-shell {
    width: calc(100% - 32px);
  }

  .masthead-note {
    max-width: 95px;
    font-size: 6px;
  }

  h1 {
    font-size: 62px;
  }

  .destination-content {
    padding-right: 18px;
    padding-left: 18px;
  }

  h2 {
    font-size: 25px;
  }

  .site-preview {
    padding-right: 15px;
    padding-left: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@keyframes intro-appear {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes card-appear {
  from { opacity: 0; translate: 0 13px; }
  to { opacity: 1; translate: 0 0; }
}

.destination-link:focus-visible { outline: none; }
