/* Lynn — personal site shared styles */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #ffffff;
  --bg-soft: #f7f7f7;
  --surface: #ffffff;
  --ink: #1a1a1a;
  --muted: #667085;
  --line: #e8e8e8;
  --sea: #4ba3c7;
  --sea-deep: #2f7fa3;
  --coral: #3a8fb8;
  --sky: #9fcde4;
  --sky-soft: rgba(159, 205, 228, 0.22);
  --gold: #c9a227;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  --radius: 16px;
  --max: 1080px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-sans: "Noto Sans SC", sans-serif;
  --font-serif: "Noto Serif SC", serif;
  --font-display: "Syne", "Noto Sans SC", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: #ffffff;
  color: var(--ink);
  line-height: 1.65;
  min-height: 100vh;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand__logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: #eef6fa;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand__mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.brand__tag {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.ip-badge {
  display: none;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--sea);
}

.project-card__title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.project-card__desc {
  font-size: 15px;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 16px;
}

.contact-mail {
  color: var(--sea);
  font-weight: 600;
  word-break: break-all;
}

.contact-mail:hover {
  color: var(--coral);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav__link {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--sea-deep);
  background: var(--sky-soft);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* Main */
.site-main {
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 24px 72px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.site-footer__brand img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.site-footer a {
  color: var(--sea);
  font-weight: 500;
}

.site-footer a:hover {
  color: var(--coral);
}

/* Typography helpers */
.eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 12px;
}

.page-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.page-lead {
  font-size: 16px;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 36px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-desc {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
}

/* Hero (home) */
.hero {
  display: grid;
  gap: 28px;
  margin-bottom: 56px;
  animation: fadeUp 0.6s var(--ease) both;
}

/* hero without mandatory photo */
.hero-solo {
  max-width: 640px;
  margin-bottom: 56px;
  animation: fadeUp 0.6s var(--ease) both;
}

.hero-with-photo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
  margin-bottom: 56px;
}

.hero-with-photo .hero {
  margin-bottom: 0;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.02em;
}

.hero__title span {
  color: var(--sea);
}

.hero__text {
  font-size: 17px;
  color: var(--muted);
  max-width: 520px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--sea);
  color: #fff;
}

.btn--primary:hover {
  background: var(--sea-deep);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--sea);
  color: var(--sea-deep);
}

.btn--disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
}

.project-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

/* Portal grid */
.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 56px;
}

.portal-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
  animation: fadeUp 0.55s var(--ease) both;
}

.portal-card:nth-child(1) { animation-delay: 0.05s; }
.portal-card:nth-child(2) { animation-delay: 0.1s; }
.portal-card:nth-child(3) { animation-delay: 0.15s; }
.portal-card:nth-child(4) { animation-delay: 0.2s; }
.portal-card:nth-child(5) { animation-delay: 0.25s; }
.portal-card:nth-child(6) { animation-delay: 0.3s; }

.portal-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--sea);
}

.portal-card__kicker {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 10px;
}

.portal-card__title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.portal-card__text {
  font-size: 14px;
  color: var(--muted);
}

.portal-card__cta {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sea);
}

/* Content blocks */
.stack {
  display: grid;
  gap: 16px;
}

.block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.block__title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.block__meta {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 8px;
}

.block__text {
  font-size: 14px;
  color: var(--muted);
}

.placeholder {
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
  border-radius: var(--radius);
  padding: 28px 24px;
  font-size: 14px;
}

.placeholder strong {
  color: var(--ink);
}

.empty-state {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: left;
}

.empty-state__title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.empty-state__text {
  font-size: 14px;
  color: var(--muted);
  max-width: 520px;
}

.status-pill {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sea);
  background: var(--sky-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.photo-grid figure {
  border-radius: 12px;
  overflow: hidden;
  background: var(--line);
  aspect-ratio: 4 / 5;
}

.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 14px;
  margin: 28px 0 8px;
}

.photo-row figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--line);
  aspect-ratio: 4 / 5;
}

.photo-row figure:first-child {
  aspect-ratio: 5 / 4;
}

.photo-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-row figcaption {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

.about-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 28px;
  align-items: start;
}

.about-photo {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.about-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.travel-cover {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.travel-cover:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--sea);
}

.travel-cover__thumb {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--line);
  flex-shrink: 0;
}

.travel-cover__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.travel-cover__title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.travel-cover__meta {
  font-size: 13px;
  color: var(--muted);
}

.hero-photo {
  width: 280px;
  max-width: 36vw;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #f3f3f3;
  box-shadow: var(--shadow);
  animation: fadeUp 0.7s var(--ease) 0.1s both;
  justify-self: end;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.list-link {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s var(--ease);
}

.list-link:first-child {
  border-top: 1px solid var(--line);
}

.list-link:hover {
  color: var(--sea);
}

.list-link__title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
}

.list-link__meta {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.prose {
  max-width: 640px;
  font-size: 15px;
  color: var(--ink);
}

.prose p + p {
  margin-top: 14px;
}

.prose .muted {
  color: var(--muted);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 800px) {
  .portal-grid,
  .photo-grid,
  .photo-row,
  .about-layout,
  .hero-with-photo {
    grid-template-columns: 1fr;
  }

  .hero-photo {
    width: min(240px, 70%);
    max-width: none;
    justify-self: start;
  }

  .travel-cover {
    grid-template-columns: 96px 1fr;
  }

  .travel-cover__thumb {
    width: 96px;
    height: 96px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    padding: 12px;
    gap: 4px;
  }

  .nav.is-open {
    display: flex;
  }

  .site-header {
    position: sticky;
  }

  .site-header__inner {
    position: relative;
    flex-wrap: wrap;
  }
}
