/* ==========================================================================
   Seoul Finds — editorial layer on GeneratePress
   Ink text, clay accent, hairline rules, serif display type.
   ========================================================================== */

:root {
  --sf-ink: #16181c;
  --sf-ink-soft: #3b4047;
  --sf-muted: #6d727a;
  --sf-rule: #e2ddd2;
  --sf-paper: #fffdf9;
  --sf-clay: #a8442a;
  --sf-clay-dark: #8a3620;
}

body,
button,
input,
textarea,
select {
  color: var(--sf-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
  background-color: var(--sf-paper);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* --- Headings: serif display, tight tracking ------------------------------ */
h1, h2, h3, h4, h5, h6,
.entry-title,
.site-title,
.main-title {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  letter-spacing: -0.015em;
  line-height: 1.22;
  color: var(--sf-ink);
}

h1, .entry-title { font-weight: 600; }
h2 { font-size: 30px; }
h3 { font-size: 23px; }
h4 { font-size: 19px; }

/* --- Masthead ------------------------------------------------------------- */
.site-header {
  border-bottom: 1px solid var(--sf-rule);
  background-color: var(--sf-paper);
}

.site-title a,
.site-title a:visited {
  font-size: 31px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--sf-ink);
  text-decoration: none;
}

.site-description {
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--sf-muted);
  margin-top: 6px;
}

.main-navigation .main-nav ul li a {
  font-size: 12.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--sf-ink-soft);
}

.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li.current-menu-item > a {
  color: var(--sf-clay);
}

/* --- Links ---------------------------------------------------------------- */
.entry-content a,
.entry-summary a {
  color: var(--sf-clay);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.entry-content a:hover,
.entry-summary a:hover {
  color: var(--sf-clay-dark);
}

/* --- Body copy ----------------------------------------------------------- */
.entry-content {
  font-size: 18px;
  line-height: 1.75;
  color: var(--sf-ink-soft);
}

.entry-content > p:first-child {
  font-size: 19.5px;
  line-height: 1.62;
  color: var(--sf-ink);
}

.entry-content h2 {
  margin-top: 2.1em;
  margin-bottom: 0.55em;
  padding-top: 0.9em;
  border-top: 1px solid var(--sf-rule);
}

.entry-content h3 { margin-top: 1.7em; margin-bottom: 0.4em; }
.entry-content p { margin-bottom: 1.25em; }
.entry-content ul,
.entry-content ol { margin-bottom: 1.4em; }
.entry-content li { margin-bottom: 0.45em; }

.entry-content blockquote {
  border-left: 3px solid var(--sf-clay);
  padding: 4px 0 4px 20px;
  margin: 1.8em 0;
  font-style: italic;
  color: var(--sf-ink);
}

.entry-content em { color: var(--sf-muted); font-style: italic; }

/* --- Comparison tables: hairline, no vertical rules ---------------------- */
.entry-content table {
  width: 100%;
  margin: 2em 0 2.2em;
  border-collapse: collapse;
  border: 0;
  border-top: 2px solid var(--sf-ink);
  border-bottom: 2px solid var(--sf-ink);
  font-size: 15.5px;
  line-height: 1.55;
  background: transparent;
}

.entry-content thead th,
.entry-content table th {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--sf-ink);
  padding: 10px 12px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  vertical-align: bottom;
}

.entry-content table td {
  border: 0;
  border-bottom: 1px solid var(--sf-rule);
  padding: 11px 12px;
  vertical-align: top;
}

.entry-content tbody tr:last-child td,
.entry-content tbody tr:last-child th { border-bottom: 0; }

.entry-content table tbody th {
  border-bottom: 1px solid var(--sf-rule);
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--sf-ink);
  width: 30%;
}

/* --- Meta ----------------------------------------------------------------- */
.entry-meta,
.posted-on,
.cat-links,
.tags-links,
.byline {
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--sf-muted);
}

.entry-meta a,
.byline a { color: var(--sf-ink-soft); text-decoration: none; }

/* --- Post list on the home page ------------------------------------------ */
.separate-containers .inside-article,
.one-container .inside-article {
  border-bottom: 1px solid var(--sf-rule);
}

.archive .entry-title,
.blog .entry-title { font-size: 27px; }

.archive .entry-summary p,
.blog .entry-summary p { color: var(--sf-ink-soft); }

/* --- Buttons and forms ---------------------------------------------------- */
button,
.button,
.wp-block-button__link,
input[type="submit"] {
  border-radius: 0;
  background-color: var(--sf-ink);
  color: #fff;
  letter-spacing: 0.03em;
}

/* --- Footer --------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--sf-rule);
  font-size: 13px;
  color: var(--sf-muted);
}

.site-footer a { color: var(--sf-ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--sf-clay); }

.footer-bar .widget_block { margin-bottom: 0; }

.footer-bar .wp-block-page-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* --- Single-column editorial layout (no empty sidebar) ------------------- */
.content-area,
.separate-containers .content-area,
.one-container .content-area,
.separate-containers .site-main {
  width: 100%;
  max-width: 100%;
  float: none;
  margin-right: 0;
}

.site-content {
  display: block;
}

#right-sidebar,
#left-sidebar,
.sidebar {
  display: none;
}

.inside-article {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.entry-content {
  max-width: none;
}

/* --- Small screens -------------------------------------------------------- */
@media (max-width: 768px) {
  body { font-size: 16.5px; }
  .entry-content { font-size: 17px; }
  .entry-content > p:first-child { font-size: 18px; }
  h2, .entry-content h2 { font-size: 25px; }
  .entry-content h3 { font-size: 20px; }
  .site-title a, .site-title a:visited { font-size: 26px; }

  .entry-content table {
    display: block;
    overflow-x: auto;
    white-space: normal;
    -webkit-overflow-scrolling: touch;
    border-top-width: 2px;
  }
}
