/*
Theme Name: Studio Grazia
Theme URI: https://studiograzia.com.au
Author: Studio Grazia
Description: Editorial Italian culture blog theme for Studio Grazia.
Version: 14.0
Text Domain: studio-grazia
*/

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

:root {
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Playfair Display', Georgia, serif;
}

html { font-size: 18px; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: #000;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* MASTHEAD */
.sg-nameplate {
  padding: 36px 40px 28px;
  border-bottom: 1px solid rgba(0,0,0,.12);
  display: flex;
  align-items: baseline;
  gap: 20px;
  transition: all .38s ease;
  overflow: hidden;
}
.sg-nameplate.hidden {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  border-bottom-color: transparent;
}
.sg-nameplate-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.8vw, 46px);
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  line-height: 1;
  flex-shrink: 0;
}
.sg-nameplate-sub {
  font-style: italic;
  font-size: 13px;
  opacity: .35;
  letter-spacing: .04em;
}

/* NAV */
.sg-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #fff;
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s ease, border-top .3s;
}
.sg-nav.scrolled {
  max-height: 48px;
  border-top: 2px solid #000;
  border-bottom: 1px solid rgba(0,0,0,.15);
}
.sg-nav-inner {
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 42px;
}
.sg-nav-cats { display: flex; list-style: none; }
.sg-nav-cats li { position: relative; }
.sg-nav-cats li a {
  font-size: 9px;
  letter-spacing: .26em;
  text-transform: uppercase;
  display: block;
  padding: 12px 20px;
  opacity: .5;
  transition: opacity .2s;
}
.sg-nav-cats li a:hover { opacity: 1; }
.sg-nav-cats li.has-drop:hover .sg-drop { display: block; }
.sg-drop {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: #fff;
  border: 1px solid #000;
  border-top: none;
  min-width: 260px;
  z-index: 100;
}
.sg-drop-item {
  display: block;
  padding: 11px 18px;
  border-bottom: 1px solid rgba(0,0,0,.07);
}
.sg-drop-item:last-child { border-bottom: none; }
.sg-drop-cat {
  font-size: 8px;
  letter-spacing: .28em;
  text-transform: uppercase;
  opacity: .38;
  margin-bottom: 3px;
}
.sg-drop-title { font-size: 15px; line-height: 1.25; opacity: .7; font-weight: 400; }
.sg-drop-item:hover .sg-drop-title { opacity: 1; }
.sg-nav-wm {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity .3s;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  white-space: nowrap;
}
.sg-nav.scrolled .sg-nav-wm { opacity: .6; }

/* HERO */
.sg-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 21/9;
  overflow: hidden;
  background: #888;
}
.sg-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sg-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.28) 45%, transparent 75%);
  pointer-events: none;
}
.sg-hero-text {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 36px 48px;
}
.sg-hero-cat {
  font-size: 9px;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: 12px;
}
.sg-hero-hl {
  font-family: var(--font-display);
  font-size: clamp(26px, 4.5vw, 56px);
  font-weight: 400;
  line-height: 1.04;
  color: #fff;
  max-width: 680px;
  margin-bottom: 18px;
}
.sg-hero-link {
  font-size: 9px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.4);
  padding-bottom: 2px;
  display: inline-block;
}
.sg-hero-link:hover { border-color: #fff; }

/* MAIN */
.sg-main { padding: 0 48px 40px; }

/* CARDS */
.sg-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  padding: 40px 0 0;
  margin-bottom: 44px;
}
.sg-col-img {
  width: 100%;
  aspect-ratio: 3/2;
  overflow: hidden;
  margin-bottom: 14px;
  background: #eee;
}
.sg-col-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.sg-col:hover .sg-col-img img { transform: scale(1.03); }
.sg-col-cat {
  font-size: 9px;
  letter-spacing: .3em;
  text-transform: uppercase;
  opacity: .35;
  margin-bottom: 8px;
}
.sg-col-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 8px;
}
.sg-col-title a:hover { opacity: .5; }
.sg-col-excerpt { font-size: 16px; line-height: 1.6; opacity: .7; margin-bottom: 8px; }
.sg-col-date { font-style: italic; font-size: 13px; opacity: .35; }

/* ICYMI + BIG */
.sg-lower {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  padding-top: 40px;
  margin-bottom: 44px;
  border-top: 1px solid rgba(0,0,0,.1);
}
.sg-icymi-head {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  font-style: italic;
  opacity: .55;
  margin-bottom: 18px;
}
.sg-icymi-item { padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,.08); }
.sg-icymi-item:last-child { border-bottom: none; }
.sg-icymi-cat { font-size: 8px; letter-spacing: .28em; text-transform: uppercase; opacity: .3; margin-bottom: 5px; font-style: italic; }
.sg-icymi-title { font-family: var(--font-display); font-size: 18px; font-weight: 400; line-height: 1.2; margin-bottom: 4px; }
.sg-icymi-title a:hover { opacity: .5; }
.sg-icymi-date { font-style: italic; font-size: 13px; opacity: .3; }

.sg-big-img { width: 100%; aspect-ratio: 3/2; overflow: hidden; margin-bottom: 14px; background: #eee; }
.sg-big-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.sg-big-cat { font-size: 9px; letter-spacing: .3em; text-transform: uppercase; opacity: .35; margin-bottom: 8px; font-style: italic; }
.sg-big-title { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 30px); font-weight: 400; line-height: 1.12; margin-bottom: 6px; }
.sg-big-title a:hover { opacity: .5; }
.sg-big-date { font-style: italic; font-size: 13px; opacity: .35; }
.sg-big-excerpt { font-size: 16px; line-height: 1.6; opacity: .7; margin-top: 6px; }

/* YOU MIGHT ALSO LIKE */
.sg-also { border-top: 1px solid rgba(0,0,0,.1); padding-top: 40px; margin-bottom: 44px; }
.sg-also-head { font-family: var(--font-display); font-size: clamp(20px, 2vw, 26px); font-weight: 400; font-style: italic; opacity: .5; margin-bottom: 28px; }
.sg-also-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }

/* EDITORIAL CARD */
.sg-editorial { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 44px; margin-bottom: 44px; }
.sg-editorial-img { overflow: hidden; min-height: 300px; background: #eee; }
.sg-editorial-img img { width: 100%; height: 100%; object-fit: cover; }
.sg-editorial-text { padding: 48px 52px; display: flex; flex-direction: column; justify-content: center; }
.sg-editorial-eyebrow { font-size: 9px; letter-spacing: .38em; text-transform: uppercase; opacity: .35; margin-bottom: 18px; font-style: italic; }
.sg-editorial-title { font-family: var(--font-display); font-size: clamp(24px, 3.2vw, 38px); font-weight: 400; line-height: 1.1; margin-bottom: 14px; }
.sg-editorial-title a:hover { opacity: .5; }
.sg-editorial-excerpt { font-size: 17px; line-height: 1.65; opacity: .7; margin-bottom: 20px; }
.sg-editorial-link { font-size: 9px; letter-spacing: .24em; text-transform: uppercase; border-bottom: 1px solid #000; padding-bottom: 2px; opacity: .6; display: inline-block; }
.sg-editorial-link:hover { opacity: .3; }

/* INSTAGRAM */
.sg-instagram { border-top: 1px solid rgba(0,0,0,.1); padding: 44px 0; display: flex; align-items: center; justify-content: space-between; gap: 40px; margin-bottom: 44px; }
.sg-instagram-label { font-size: 9px; letter-spacing: .36em; text-transform: uppercase; opacity: .3; margin-bottom: 10px; }
.sg-instagram-heading { font-family: var(--font-display); font-size: clamp(22px, 2.8vw, 32px); font-weight: 400; line-height: 1.1; margin-bottom: 8px; }
.sg-instagram-sub { font-size: 16px; line-height: 1.6; opacity: .5; font-style: italic; margin-bottom: 18px; }
.sg-instagram-link { font-size: 9px; letter-spacing: .24em; text-transform: uppercase; border-bottom: 1px solid #000; padding-bottom: 2px; opacity: .6; display: inline-block; }
.sg-instagram-preview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; flex-shrink: 0; width: 280px; }
.sg-instagram-preview a { display: block; aspect-ratio: 1; overflow: hidden; background: #eee; }
.sg-instagram-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ABOUT */
.sg-about { border-top: 1px solid rgba(0,0,0,.1); padding: 40px 0 48px; display: grid; grid-template-columns: 160px 1fr; gap: 44px; align-items: start; }
.sg-about-label { font-size: 9px; letter-spacing: .36em; text-transform: uppercase; opacity: .3; padding-top: 3px; line-height: 1.7; font-style: italic; }
.sg-about-heading { font-family: var(--font-display); font-size: clamp(20px, 2.2vw, 26px); font-weight: 400; text-transform: none !important; margin-bottom: 12px; line-height: 1.1; }
.sg-about-body { font-size: 17px; line-height: 1.7; opacity: .65; margin-bottom: 18px; font-style: italic; }
.sg-about-link { font-size: 9px; letter-spacing: .24em; text-transform: uppercase; border-bottom: 1px solid #000; padding-bottom: 2px; opacity: .6; display: inline-block; }
.sg-about-link:hover { opacity: .3; }

/* FOOTER */
.sg-foot { background: #000; padding: 32px 48px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.sg-foot-nav { display: flex; gap: 18px; list-style: none; }
.sg-foot-nav li a { font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.45); transition: color .2s; }
.sg-foot-nav li a:hover { color: #fff; }
.sg-foot-copy { font-style: italic; font-size: 13px; color: rgba(255,255,255,.25); }

/* SINGLE POST */
.sg-post-hero { width: 100%; aspect-ratio: 21/9; overflow: hidden; background: #eee; }
.sg-post-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sg-post-header { max-width: 960px; margin: 0 auto; padding: 48px 60px 0; }
.sg-post-kicker { font-size: 9px; letter-spacing: .38em; text-transform: uppercase; opacity: .38; margin-bottom: 18px; font-style: italic; }
.sg-post-title { font-family: var(--font-display); font-size: clamp(32px, 5vw, 58px); font-weight: 400; line-height: 1.06; margin-bottom: 24px; }
.sg-post-meta { display: flex; align-items: center; padding-bottom: 28px; border-bottom: 1px solid rgba(0,0,0,.1); }
.sg-post-meta span { font-style: italic; font-size: 14px; opacity: .45; }
.sg-post-meta span + span::before { content: '·'; margin: 0 10px; opacity: .45; }
.sg-post-body { max-width: 860px; margin: 0 auto; padding: 40px 60px 60px; }
.sg-post-body p { font-size: 16px; line-height: 1.75; font-weight: 400; margin-bottom: 20px; opacity: 1; }
.sg-post-body p:last-child { margin-bottom: 0; }
.sg-post-body p:first-child::first-letter { font-family: var(--font-display); font-size: 2em; font-weight: 400; line-height: 1; }
.sg-post-body h2, .sg-post-body h3 { font-family: var(--font-display); font-size: 22px; font-weight: 400; line-height: 1.2; margin: 40px 0 14px; letter-spacing: 0; }
.sg-post-body blockquote { border-left: 2px solid #000; padding: 2px 0 2px 24px; margin: 36px 0; }
.sg-post-body blockquote p { font-family: var(--font-display); font-size: 20px; font-style: italic; font-weight: 400; line-height: 1.45; opacity: .75; margin-bottom: 0; }
.sg-post-body img { width: 100%; height: auto; margin: 32px 0; }

/* RELATED */
.sg-related { border-top: 1px solid rgba(0,0,0,.1); padding: 40px 40px 60px; }
.sg-related-head { font-family: var(--font-display); font-size: 22px; font-weight: 400; font-style: italic; opacity: .5; margin-bottom: 28px; max-width: 780px; margin-left: auto; margin-right: auto; }
.sg-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; max-width: 780px; margin: 0 auto; }
.sg-rel-img { width: 100%; aspect-ratio: 3/2; overflow: hidden; margin-bottom: 14px; background: #eee; }
.sg-rel-img img { width: 100%; height: 100%; object-fit: cover; }
.sg-rel-cat { font-size: 8px; letter-spacing: .28em; text-transform: uppercase; opacity: .3; margin-bottom: 7px; font-style: italic; }
.sg-rel-title { font-family: var(--font-display); font-size: 18px; font-weight: 400; line-height: 1.25; margin-bottom: 5px; }
.sg-rel-title a:hover { opacity: .5; }
.sg-rel-date { font-style: italic; font-size: 13px; opacity: .3; }

/* CATEGORY PAGE */
.sg-cat-header { padding: 52px 48px 44px; border-bottom: 1px solid rgba(0,0,0,.1); }
.sg-cat-eyebrow { font-size: 9px; letter-spacing: .4em; text-transform: uppercase; opacity: .35; margin-bottom: 14px; font-style: italic; }
.sg-cat-title { font-family: var(--font-display); font-size: clamp(38px, 7vw, 80px); font-weight: 400; letter-spacing: .04em; line-height: .95; margin-bottom: 24px; }
.sg-cat-rule { width: 32px; height: 1px; background: #000; opacity: .2; margin-bottom: 20px; }
.sg-cat-explainer { font-size: 17px; line-height: 1.8; opacity: .6; max-width: 560px; font-style: italic; }
.sg-cat-grid { padding: 44px 48px 72px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 40px; }

/* STATIC PAGES */
.sg-page-header { max-width: 780px; margin: 0 auto; padding: 56px 40px 0; }
.sg-page-title { font-family: var(--font-display); font-size: clamp(32px, 5vw, 56px); font-weight: 400; line-height: 1.06; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid rgba(0,0,0,.1); }
.sg-page-body { max-width: 680px; margin: 0 auto; padding: 40px 40px 72px; }
.sg-page-body p { font-size: 19px; line-height: 1.85; margin-bottom: 22px; }
.sg-page-body h2, .sg-page-body h3 { font-family: var(--font-display); font-size: 28px; font-weight: 400; line-height: 1.2; margin: 36px 0 14px; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .sg-nameplate { padding: 24px 20px 20px; flex-wrap: wrap; gap: 6px; }
  .sg-nameplate-sub { width: 100%; font-size: 11px; }
  .sg-hero { aspect-ratio: unset; height: 100svh; }
  .sg-hero-text { padding: 24px 20px 32px; }
  .sg-main { padding: 0 20px 40px; }
  .sg-cols, .sg-also-grid { grid-template-columns: 1fr; gap: 28px; }
  .sg-lower { grid-template-columns: 1fr; }
  .sg-editorial { grid-template-columns: 1fr; margin-top: 32px; }
  .sg-editorial-text { padding: 28px 20px; }
  .sg-instagram { flex-direction: column; gap: 24px; }
  .sg-instagram-preview { width: 100%; }
  .sg-about { grid-template-columns: 1fr; gap: 12px; padding-bottom: 36px; }
  .sg-foot { flex-direction: column; padding: 24px 20px; gap: 12px; }
  .sg-foot-nav { flex-wrap: wrap; gap: 12px; }
  .sg-post-header, .sg-post-body, .sg-related { padding-left: 20px; padding-right: 20px; }
  .sg-related-grid { grid-template-columns: 1fr; }
  .sg-cat-header, .sg-cat-grid { padding-left: 20px; padding-right: 20px; }
  .sg-cat-grid { grid-template-columns: 1fr; }
}

.sg-about-links { display: flex; align-items: center; gap: 20px; }
.sg-about-ig { opacity: .45; transition: opacity .2s; display: flex; align-items: center; }
.sg-about-ig:hover { opacity: 1; }
.sg-about-ig svg { display: block; }
