/* A typographic identity for Soo: a quiet Korean line, an open serif
   wordmark, and English navigation inspired by a photography monograph. */
@font-face {
  font-family: 'Soophoto Serif';
  src: url('assets/fonts/soophoto-roman.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Soophoto Serif';
  src: url('assets/fonts/soophoto-italic.woff') format('woff');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
.site-header.masthead {
  --masthead-serif: 'Soophoto Serif', 'Palatino Linotype', 'Book Antiqua', serif;
  min-height: 0;
  max-width: 1320px;
  gap: 18px;
  padding: 25.2px var(--gutter) 21.6px;
  color: #242424;
}
.masthead .wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  font: 400 clamp(2rem, 4vw, 3.2rem)/1.12 var(--masthead-serif);
  letter-spacing: -.015em;
}
.masthead .wordmark > .wordmark-role {
  max-width: 100%;
  padding: 0;
  font: 400 .8125rem/1.6 var(--sans);
  letter-spacing: .04em;
  text-align: center;
  color: #666;
}
.masthead .wordmark > .wordmark-name { display: block; font: inherit; letter-spacing: inherit; }
.masthead .wordmark:focus-visible { outline: 1px solid #242424; outline-offset: 8px; }
.site-header .masthead-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  width: min(100%, 34rem);
  gap: 0;
  border-top: 1px solid #d4d4d4;
}
.site-header .masthead-nav a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 6px 10px;
  border: 0;
  color: #3d3d3d;
  text-align: center;
}
.masthead-nav .nav-en {
  font: italic 400 1.0625rem/1.35 var(--masthead-serif);
  letter-spacing: -.015em;
  color: inherit;
  transition: color 220ms ease, transform 220ms ease;
}
.masthead-nav a::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  width: 26px;
  height: 1px;
  background: currentColor;
  transform: translateX(-50%) scaleX(0);
  transition: transform 220ms ease;
}
.site-header .masthead-nav a:is(:hover, :focus-visible, [aria-current]) { color: #171717; }
.masthead-nav a:is(:hover, :focus-visible, [aria-current])::before { transform: translateX(-50%) scaleX(1); }
.masthead-nav a:is(:hover, :focus-visible, [aria-current]) .nav-en { color: #242424; transform: translateY(2px); }
.masthead-nav a:focus-visible { outline: 1px solid #242424; outline-offset: 3px; }
@media (max-width: 700px) {
  .site-header.masthead { gap: 16.2px; padding: 21.6px 18px 18px; }
  .masthead .wordmark { font-size: clamp(1.5rem, 7.2vw, 2.75rem); }
  .site-header .masthead-nav { width: min(100%, 28rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 4.8rem), 1fr)); }
  .site-header .masthead-nav a { min-height: 44px; padding: 12px 3px 10px; }
  .masthead-nav .nav-en { font-size: .9375rem; }
}
@media (max-width: 380px) {
  .site-header .masthead-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .masthead-nav .nav-en, .masthead-nav a::before { transition: none; }
  .masthead-nav a:is(:hover, :focus-visible, [aria-current]) .nav-en { transform: none; }
}
