* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'DM Sans', sans-serif;
  background: transparent;
}

/* ─── Layout ─────────────────────────────────────────────── */
.port-root {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
}

/* ─── Site Header ────────────────────────────────────────── */
.site-header {
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}

.site-name {
  font-family: 'DM Serif Display', serif;
  font-size: 52px;
  font-weight: 400;
  color: #1a1a1a;
  line-height: 1.05;
}

.site-name a {
  color: inherit;
  text-decoration: none;
}

.site-subhead {
  font-size: 15px;
  color: #888;
  letter-spacing: 0.04em;
  margin-top: 0.35rem;
}

/* ─── About ──────────────────────────────────────────────── */
.about {
  max-width: 560px;
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.1);
}

.about p {
  font-size: 15px;
  color: #444;
  line-height: 1.7;
}

.about p + p {
  margin-top: 0.75rem;
}

.about-aside {
  font-size: 13px !important;
  color: #888 !important;
}

.about a {
  color: #444;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s;
}

.about a:hover {
  color: #1a1a1a;
}

/* ─── Header ─────────────────────────────────────────────── */
.port-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
}

.port-title {
  font-family: 'DM Serif Display', serif;
  font-size: 38px;
  font-weight: 400;
  color: #1a1a1a;
  line-height: 1.1;
}

.port-title em {
  font-style: italic;
  color: #888;
}

.port-count {
  font-size: 13px;
  color: #999;
  letter-spacing: 0.08em;
}

/* ─── Filter Row ─────────────────────────────────────────── */
.filter-row {
  display: flex;
  gap: 8px;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.fbtn {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  padding: 6px 16px;
  border-radius: 100px;
  border: 0.5px solid rgba(0, 0, 0, 0.2);
  background: transparent;
  color: #555;
  cursor: pointer;
  transition: all 0.15s;
}

.fbtn:hover {
  background: #f7f6f3;
  color: #1a1a1a;
}

.fbtn.on {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

/* ─── Grid ───────────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* ─── Card ───────────────────────────────────────────────── */
.card {
  background: #fff;
  border: 0.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
  text-decoration: none;
  display: block;
  color: inherit;
}

.card:hover {
  border-color: rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

/* ─── Card Thumbnail ─────────────────────────────────────── */
.card-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.card-thumb-color {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.thumb-label {
  font-family: 'DM Serif Display', serif;
  font-size: 26px;
  font-weight: 400;
  opacity: 0.15;
  letter-spacing: -0.02em;
  text-align: center;
  padding: 0 1rem;
}

/* ─── Card Body ──────────────────────────────────────────── */
.card-body {
  padding: 1.25rem;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-group {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.tag {
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 100px;
  border: 0.5px solid rgba(0, 0, 0, 0.2);
  color: #555;
  font-family: 'DM Sans', sans-serif;
}

.card-year {
  font-size: 12px;
  color: #999;
  white-space: nowrap;
}

.card-title {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  font-weight: 400;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.card-desc {
  font-size: 13px;
  color: #555;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.875rem;
  border-top: 0.5px solid rgba(0, 0, 0, 0.1);
}

.card-role {
  font-size: 12px;
  color: #999;
}

.card-arrow {
  font-size: 16px;
  color: #888;
  transition: transform 0.18s;
}

.card:hover .card-arrow {
  transform: translate(2px, -2px);
}

/* ─── Featured Card ──────────────────────────────────────── */
.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.featured .card-thumb {
  height: 100%;
  min-height: 260px;
  aspect-ratio: unset;
}

.featured .card-thumb-color {
  height: 100%;
  min-height: 260px;
  aspect-ratio: unset;
}

.featured .card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured .card-title {
  font-size: 30px;
}

/* ─── Badges ─────────────────────────────────────────────── */
.feat-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 11px;
  letter-spacing: 0.07em;
  font-family: 'DM Sans', sans-serif;
  background: #fff;
  border: 0.5px solid rgba(0, 0, 0, 0.2);
  padding: 4px 12px;
  border-radius: 100px;
  color: #555;
}

.win-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 11px;
  letter-spacing: 0.06em;
  font-family: 'DM Sans', sans-serif;
  background: #EF9F27;
  padding: 4px 12px;
  border-radius: 100px;
  color: #412402;
}

.thumb-wrap {
  position: relative;
}

/* ─── Empty State ────────────────────────────────────────── */
.empty {
  grid-column: 1 / -1;
  padding: 3rem;
  text-align: center;
  color: #999;
  font-size: 14px;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 640px) {
  .featured {
    grid-template-columns: 1fr;
  }
}
