/*
Theme Name: Grey Folio
Theme URI: https://greyfolio.com
Author: Grey Folio
Author URI: https://greyfolio.com
Description: Korean Flavor, Refined. A modern editorial archive for Korean food and drink culture.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: greyfolio
*/

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1a1a1a;
  background: #ffffff;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
.gf-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #888;
}
.gf-title-lg { font-size: 40px; font-weight: 500; line-height: 1.15; color: #111; }
.gf-title-md { font-size: 22px; font-weight: 500; line-height: 1.3; color: #111; }
.gf-title-sm { font-size: 15px; font-weight: 500; line-height: 1.4; color: #111; }
.gf-body { font-size: 13px; color: #555; line-height: 1.75; }
.gf-link {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.gf-link:hover { color: #333; }
.gf-tag {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #999;
  border: 0.5px solid #ddd;
  padding: 3px 9px;
  border-radius: 2px;
  display: inline-block;
}

/* ============================================
   LAYOUT
   ============================================ */
.gf-container { width: 100%; max-width: 1280px; margin: 0 auto; }
.gf-divider { border: none; border-top: 0.5px solid #e8e8e8; }

/* ============================================
   NAVIGATION
   ============================================ */
.gf-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  border-bottom: 0.5px solid #e8e8e8;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}
.gf-nav-logo {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #111;
}
.gf-nav-menu {
  display: flex;
  gap: 32px;
  align-items: center;
}
.gf-nav-menu a {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #666;
  transition: color 0.2s;
}
.gf-nav-menu a:hover { color: #111; }
.gf-nav-search {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #888;
  border: 0.5px solid #ddd;
  padding: 7px 16px;
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s;
}
.gf-nav-search:hover { border-color: #aaa; color: #333; }
.gf-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.gf-nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: #333;
  margin: 5px 0;
  transition: 0.3s;
}

/* ============================================
   HERO
   ============================================ */
.gf-hero {
  background: #0d0d0d;
  padding: 80px 40px 72px;
  position: relative;
  overflow: hidden;
}
.gf-hero::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 1px;
  background: #222;
}
.gf-hero-edition {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #4a4540;
  margin-bottom: 20px;
}
.gf-hero-title {
  font-size: 52px;
  font-weight: 500;
  line-height: 1.1;
  color: #f0ece4;
  max-width: 620px;
  margin-bottom: 20px;
}
.gf-hero-subtitle {
  font-size: 14px;
  color: #6a6258;
  max-width: 460px;
  line-height: 1.75;
  margin-bottom: 32px;
}
.gf-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b8a98a;
  border-bottom: 0.5px solid #b8a98a;
  padding-bottom: 3px;
  transition: color 0.2s;
}
.gf-hero-cta:hover { color: #d4c9aa; }
.gf-hero-vol {
  position: absolute;
  right: 40px;
  bottom: 28px;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #2a2520;
}

/* ============================================
   SECTION HEADER
   ============================================ */
.gf-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 0 20px 0;
  border-bottom: 0.5px solid #e8e8e8;
  margin-bottom: 0;
}

/* ============================================
   SECTION WRAPPER
   ============================================ */
.gf-section {
  padding: 36px 40px;
  border-bottom: 0.5px solid #e8e8e8;
}

/* ============================================
   CARD GRID (3-col)
   ============================================ */
.gf-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}
.gf-card-item {
  border: 0.5px solid #e8e8e8;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s;
  text-decoration: none;
  color: inherit;
}
.gf-card-item:hover { border-color: #aaa; }
.gf-card-item:hover .gf-card-img img { transform: scale(1.03); }

.gf-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #f2f0ec;
  position: relative;
}
.gf-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.gf-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f2f0ec;
}
.gf-card-img-placeholder span {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ccc;
}
.gf-card-body-wrap {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.gf-card-tag { font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: #aaa; margin-bottom: 10px; }
.gf-card-title { font-size: 15px; font-weight: 500; color: #111; line-height: 1.4; margin-bottom: 10px; }
.gf-card-body { font-size: 12px; color: #666; line-height: 1.75; margin-bottom: 16px; flex: 1; }

.gf-card-btn {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: #111;
  padding: 9px 16px;
  border-radius: 2px;
  text-decoration: none;
  align-self: flex-start;
  transition: background 0.2s;
}
.gf-card-btn:hover { background: #333; color: #fff; }

/* ============================================
   FEATURED LAYOUT
   ============================================ */
.gf-featured {
  display: grid;
  grid-template-columns: 2fr 1fr;
  margin-top: 0;
}
.gf-featured-main {
  padding: 28px 32px 28px 0;
  border-right: 0.5px solid #e8e8e8;
}
.gf-featured-main .gf-label { margin-bottom: 14px; }
.gf-featured-main .gf-title-md { margin-bottom: 14px; }
.gf-featured-main .gf-body { margin-bottom: 20px; }
.gf-featured-side { display: flex; flex-direction: column; }
.gf-side-item {
  padding: 20px 0 20px 28px;
  border-bottom: 0.5px solid #e8e8e8;
  flex: 1;
}
.gf-side-item:last-child { border-bottom: none; }
.gf-side-num { font-size: 10px; color: #ccc; margin-bottom: 8px; }

/* ============================================
   INDEX GRID (4-col)
   ============================================ */
.gf-index-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.gf-index-col {
  padding: 24px 24px 24px 0;
  border-right: 0.5px solid #e8e8e8;
  margin-right: 24px;
}
.gf-index-col:last-child {
  border-right: none;
  margin-right: 0;
  padding-right: 0;
}
.gf-index-col-title {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #bbb;
  padding-bottom: 10px;
  border-bottom: 0.5px solid #e8e8e8;
  margin-bottom: 0;
}
.gf-index-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 0.5px solid #f0f0f0;
  font-size: 12px;
  color: #555;
  transition: color 0.2s;
  cursor: pointer;
}
.gf-index-entry:last-child { border-bottom: none; }
.gf-index-entry:hover { color: #111; }
.gf-index-arr { font-size: 10px; color: #ccc; }

/* ============================================
   NEWSLETTER STRIP
   ============================================ */
.gf-newsletter {
  background: #f7f5f2;
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 0.5px solid #e8e8e8;
}
.gf-newsletter-text .gf-label { margin-bottom: 6px; }
.gf-newsletter-text p { font-size: 13px; color: #555; }
.gf-newsletter-form { display: flex; gap: 0; }
.gf-newsletter-input {
  font-size: 12px;
  padding: 10px 16px;
  border: 0.5px solid #ccc;
  border-right: none;
  border-radius: 2px 0 0 2px;
  width: 240px;
  background: #fff;
  outline: none;
}
.gf-newsletter-btn {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 20px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 0 2px 2px 0;
  cursor: pointer;
}

/* ============================================
   FOOTER
   ============================================ */
.gf-footer {
  padding: 28px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.gf-footer-logo { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #bbb; }
.gf-footer-right { font-size: 11px; color: #ccc; }

/* ============================================
   SINGLE POST
   ============================================ */
.gf-post-header {
  padding: 60px 40px 40px;
  border-bottom: 0.5px solid #e8e8e8;
  max-width: 760px;
}
.gf-post-header .gf-label { margin-bottom: 16px; }
.gf-post-header h1 { font-size: 36px; font-weight: 500; line-height: 1.2; margin-bottom: 16px; }
.gf-post-header .gf-body { font-size: 16px; line-height: 1.8; color: #444; }
.gf-post-content {
  padding: 40px 40px 80px;
  max-width: 760px;
}
.gf-post-content p { font-size: 15px; line-height: 1.85; color: #333; margin-bottom: 1.5rem; }
.gf-post-content h2 { font-size: 20px; font-weight: 500; margin: 2.5rem 0 1rem; color: #111; }
.gf-post-content h3 { font-size: 16px; font-weight: 500; margin: 2rem 0 0.75rem; color: #111; }

/* ============================================
   ARCHIVE
   ============================================ */
.gf-archive-header { padding: 48px 40px 32px; border-bottom: 0.5px solid #e8e8e8; }
.gf-archive-header h1 { font-size: 28px; font-weight: 500; }
.gf-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0 40px;
}
.gf-archive-item {
  padding: 28px 28px 28px 0;
  border-right: 0.5px solid #e8e8e8;
  border-bottom: 0.5px solid #e8e8e8;
  margin-right: 28px;
}
.gf-archive-item:nth-child(3n) { border-right: none; margin-right: 0; padding-right: 0; }

/* ============================================
   SEARCH
   ============================================ */
.gf-search-wrap { padding: 40px; border-bottom: 0.5px solid #e8e8e8; }
.gf-search-wrap input[type="search"] {
  width: 100%;
  font-size: 18px;
  border: none;
  border-bottom: 1px solid #ccc;
  padding: 10px 0;
  outline: none;
  background: transparent;
}
.gf-search-wrap input[type="search"]::placeholder { color: #bbb; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .gf-hero-title { font-size: 38px; }
  .gf-index-grid { grid-template-columns: repeat(2, 1fr); }
  .gf-index-col:nth-child(2) { border-right: none; margin-right: 0; padding-right: 0; }
  .gf-index-col:nth-child(3) { border-top: 0.5px solid #e8e8e8; padding-top: 20px; }
}

@media (max-width: 768px) {
  .gf-nav { padding: 16px 20px; }
  .gf-nav-menu, .gf-nav-search { display: none; }
  .gf-nav-toggle { display: block; }
  .gf-nav-menu.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 56px; left: 0; right: 0;
    background: #fff;
    padding: 20px;
    border-bottom: 0.5px solid #e8e8e8;
    z-index: 99;
    gap: 16px;
  }
  .gf-hero { padding: 48px 20px 48px; }
  .gf-hero-title { font-size: 28px; }
  .gf-section { padding: 28px 20px; }
  .gf-grid-3 { grid-template-columns: 1fr; gap: 16px; }
  .gf-card-item { border-right: none; }
  .gf-featured { grid-template-columns: 1fr; }
  .gf-featured-main { border-right: none; padding-right: 0; border-bottom: 0.5px solid #e8e8e8; padding-bottom: 24px; }
  .gf-featured-side { border-top: none; }
  .gf-side-item { padding-left: 0; }
  .gf-index-grid { grid-template-columns: 1fr 1fr; }
  .gf-index-col { margin-right: 16px; padding-right: 0; }
  .gf-index-col:nth-child(even) { border-right: none; margin-right: 0; }
  .gf-newsletter { flex-direction: column; gap: 20px; align-items: flex-start; }
  .gf-newsletter-input { width: 200px; }
  .gf-footer { flex-direction: column; gap: 10px; padding: 20px; }
  .gf-archive-grid { grid-template-columns: 1fr; padding: 0 20px; }
  .gf-archive-item { border-right: none; margin-right: 0; padding-right: 0; }
  .gf-post-header, .gf-post-content { padding-left: 20px; padding-right: 20px; }
}
