/* ============================================================
   YLC CREATIVE — youlookcool.org
   Stylesheet for index.html
   Nick Drake / Nick Drake Design LLC
   ============================================================ */


/* ── TOKENS ─────────────────────────────────────────────── */

:root {
  --blue:        #2745e4;
  --cream:       #f5f0e8;
  --cream-dark:  #e8e0cc;
  --ink:         #1a1410;
  --ink-mid:     #2c2418;
  --yellow-light: #F5F5A3;
  --yellow:      #e8e832;
  --yellow-dark: #c8c800;

  --rule:        2px solid #1a1410;
  --rule-thin:   1px solid #1a1410;
  --rule-thick:  4px solid #1a1410;
  --rule-heavy:  8px solid #1a1410;
}


/* ── RESET ───────────────────────────────────────────────── */

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

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Source Serif 4', Georgia, serif;
  overflow-x: hidden;
}


/* ── TICKER ──────────────────────────────────────────────── */

.ticker-wrap {
  background: var(--yellow);
  border-bottom: var(--rule-thick);
  overflow: hidden;
  white-space: nowrap;
  padding: 6px 0;
}

.ticker-track {
  display: inline-block;
  animation: ticker 22s linear infinite;
}

.ticker-track span {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 28px;
}

.ticker-track span::after {
  content: '✦';
  margin-left: 28px;
}

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* ── WRAPPER ─────────────────────────────────────────────── */

.broadsheet {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 60px;
}


/* ── MASTHEAD ────────────────────────────────────────────── */

.masthead {
  /* border-bottom: var(--rule-heavy); */
  padding: 18px 0 0;
}

.masthead-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: var(--rule-thin);
  padding-bottom: 8px;
  margin-bottom: 8px;
  font-family: 'IM Fell English', Georgia, serif;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

.masthead-top .edition { font-style: italic; }

.masthead-top .price-tag {
  background: #2745e4;
  color: var(--cream);
  padding: 6px 20px;
  border-radius: 999px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.15s;
}
.masthead-top .price-tag:hover { background: #1a32b8; }

.masthead-hero {
  text-align: center;
  padding: 12px 0 4px;
  position: relative;
}

.masthead-name {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: clamp(72px, 12vw, 148px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.masthead-name .ylc-accent {
  color: var(--ink);
  position: relative;
}

/* Yellow offset shadow on special headline glyphs */
.masthead-name .glyph {
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
  text-shadow: 4px 4px 0 var(--yellow);
}

.masthead-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 10px 0 14px;
  border-top: var(--rule-thin);
  margin-top: 10px;
}

.masthead-sub .rule-line {
  flex: 1;
  height: 1px;
  background: var(--ink);
}

.masthead-sub p {
  font-family: 'IM Fell English', Georgia, serif;
  font-style: italic;
  font-size: 1.125rem;
  letter-spacing: 0.03em;
  text-align: center;
}


/* ── NAV BAR ─────────────────────────────────────────────── */

.nav-bar {
  background: var(--ink);
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 0;
}

.nav-bar a {
  color: var(--cream);
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 22px;
  border-right: 1px solid #3a2e20;
  transition: background 0.15s, color 0.15s;
}

.nav-bar a:first-child { border-left: 1px solid #3a2e20; }
.nav-bar a:hover       { background: var(--yellow); color: var(--ink); }


/* ── SECTION FLAGS ───────────────────────────────────────── */

.section-flag {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 36px 0 0;
  border-top: var(--rule-thick);
  border-bottom: var(--rule);
}

.section-flag .flag-label {
  background: var(--ink);
  color: var(--cream);
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 16px;
}

.section-flag .flag-rule {
  flex: 1;
  height: 2px;
  background: transparent;
}

.section-flag .flag-ornament {
  font-size: 1rem;
  padding: 0 12px;
  color: var(--ink);
}


/* ── ABOUT ───────────────────────────────────────────────── */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 2px 1fr 2px 240px;
  gap: 0;
  padding: 24px 0;
  border-bottom: var(--rule);
}

.col-rule { background: var(--ink); }

.about-col               { padding: 0 24px; }
.about-col:first-child   { padding-left: 0; }
.about-col:last-child    { padding-right: 0; }

.about-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 14px;
}

.about-headline em {
  font-style: italic;
  font-weight: 400;
}

.drop-cap::first-letter {
  font-family: 'UnifrakturMaguntia', cursive;
  font-size: 72px;
  float: left;
  line-height: 0.75;
  margin: 6px 8px 0 0;
  color: var(--ink);
}

.body-text {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-mid);
}

.body-text + .body-text { margin-top: 12px; }

.ornament-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding-left: 20px;
}

.concentric {
  width: 180px;
  height: 180px;
  flex-shrink: 0;
}

.pull-quote {
  border-top: var(--rule-thick);
  border-bottom: var(--rule-thick);
  padding: 14px 0;
  text-align: center;
  margin-top: 16px;
}

.pull-quote p {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.4;
}

.info-box {
  border: var(--rule);
  padding: 14px;
  margin-top: 16px;
  background: var(--cream-dark);
}

.info-box .info-label {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-bottom: var(--rule-thin);
  padding-bottom: 6px;
  margin-bottom: 8px;
}

.info-box p {
  font-size: 0.875rem;
  line-height: 1.6;
}

.info-box a {
  color: var(--ink);
  font-weight: 600;
}

.ornament-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.ornament-rule .or-line {
  flex: 1;
  height: 1px;
  background: var(--ink);
}

.ornament-rule .or-glyph {
  font-size: 1.125rem;
  line-height: 1;
}


/* ── SERVICES ────────────────────────────────────────────── */

.services-intro {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0;
  border-bottom: var(--rule);
  padding: 20px 0;
}

.services-lede {
  padding-right: 24px;
  border-right: var(--rule);
}

.services-lede-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 10px;
}

.services-tagline {
  font-family: 'IM Fell English', Georgia, serif;
  font-style: italic;
  font-size: 2rem;
  line-height: 1.6;
  padding-left: 24px;
  padding-top: 4px;
}

/* Service ad grid */
.ad-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: var(--rule);
  border-top: var(--rule);
  margin-top: 0;
}

.ad-cell {
  border-right: var(--rule);
  border-bottom: var(--rule);
  padding: 16px 14px;
  position: relative;
  transition: background 0.15s;
}

.ad-cell:hover { background: var(--cream-dark); }

/* Warm yellow gradient on all service cells */
.ad-cell {
  background: linear-gradient(135deg, var(--cream) 50%, var(--yellow-light) 100%);
}

/* Blue gradient override for the wide Web Design cell */
.ad-cell.wide {
  background: linear-gradient(135deg, var(--cream) 50%, #e8eeff 100%);
}
.ad-cell.wide:hover {
  background: linear-gradient(135deg, var(--cream) 0%, #b0c4f4 100%);
}

.ad-cell .ad-category {
  font-family: 'Oswald', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-bottom: var(--rule-thin);
  padding-bottom: 5px;
  margin-bottom: 8px;
  color: #555;
}

.ad-cell .ad-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 6px;
}

.ad-cell .ad-price {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  margin: 8px 0 6px;
  background: transparent;
  display: inline-block;
  padding: 4px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
}

.ad-cell .ad-price sup {
  font-size: 1rem;
  vertical-align: super;}

.ad-cell .ad-desc {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink-mid);
  margin-top: 8px;
}

.ad-cell .ad-ornament {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 22px;
  opacity: 0.15;
}

/* Wide service ad — spans 2 columns */
.ad-cell.wide            { grid-column: span 2; }
.ad-cell.wide .ad-name   { font-size: 32px; }
.ad-cell.wide .ad-price  { font-size: 42px; }


/* ── PRICING HERO IMAGE ──────────────────────────────────── */

.pricing-hero {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: var(--rule);
  border-bottom: none;
  margin-top: 20px;
}

.pricing-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* ── PRICING TABLES ──────────────────────────────────────── */

.pricing-table-wrap {
  border: var(--rule);
  margin-top: 20px;
  overflow-x: auto;
}

.pricing-table-head {
  background: var(--ink);
  color: var(--cream);
  display: flex;
  align-items: center;
  padding: 10px 18px;
  gap: 12px;
}

.pricing-table-head h3 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.pricing-table-head span {
  font-family: 'IM Fell English', Georgia, serif;
  font-style: italic;
  font-size: 0.875rem;
  opacity: 0.7;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

table th {
  background: var(--cream-dark);
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 8px 14px;
  text-align: left;
  border-bottom: var(--rule);
  border-right: var(--rule-thin);
}

table td {
  padding: 9px 14px;
  border-bottom: var(--rule-thin);
  border-right: var(--rule-thin);
  vertical-align: top;
}

table tr:nth-child(even) td { background: rgba(0,0,0,0.025); }

table td.price-cell {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 15px;
  background: linear-gradient(135deg, var(--cream) 50%, var(--yellow-light) 100%);
  white-space: nowrap;
}

table td.tier-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1rem;
}


/* ── PORTFOLIO ───────────────────────────────────────────── */

.portfolio-masthead {
  text-align: center;
  padding: 16px 0;
  border-bottom: var(--rule-thick);
}

.portfolio-masthead h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.portfolio-masthead .sub {
  font-family: 'IM Fell English', Georgia, serif;
  font-style: italic;
  font-size: 15px;
  margin-top: 6px;
  color: #555;
}

/* 6-column broadsheet grid — items span different widths */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-left: var(--rule);
  border-top: var(--rule);
}

.pf-item {
  border-right: var(--rule);
  border-bottom: var(--rule);
  padding: 16px 14px;
  position: relative;
  transition: background 0.12s;
}

.pf-item:hover { background: var(--cream-dark); }

/* Span variants */
.pf-item.span2 { grid-column: span 2; }
.pf-item.span3 { grid-column: span 3; }
.pf-item.span4 { grid-column: span 4; }
.pf-item.span6 { grid-column: span 6; }

.pf-item .pf-industry {
  font-family: 'Oswald', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #888;
  border-bottom: var(--rule-thin);
  padding-bottom: 5px;
  margin-bottom: 8px;
}

.pf-item .pf-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  font-size: 20px;
  line-height: 1.1;
  margin-bottom: 1rem;
}

/* Scale headline with card width */
.pf-item.span3 .pf-name { font-size: 30px; }
.pf-item.span4 .pf-name { font-size: 38px; }
.pf-item.span6 .pf-name { font-size: 48px; }

/* Clickable headline link */
.pf-item .pf-name a {
  color: inherit;
  text-decoration: none;
  border-bottom: 3px solid var(--yellow);
  transition: border-color 0.15s;
}
.pf-item .pf-name a:hover { border-color: var(--ink); }

.pf-item .pf-client {
  font-family: 'IM Fell English', Georgia, serif;
  font-style: italic;
  font-size: 0.875rem;
  color: #666;
  margin-bottom: .5rem;
}

.pf-item .pf-type {
  display: inline-block;
  background: var(--ink);
  color: var(--cream);
  font-family: 'Oswald', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 7px;
  margin-right: 4px;
  margin-bottom: 4px;
}

.pf-item .pf-type.yellow-tag {
  background: var(--yellow);
  color: var(--ink);
}

.pf-item .pf-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-top: 8px;
  color: var(--ink-mid);
}

.pf-item .pf-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--blue);
  padding-bottom: 1px;
  transition: border-color 0.15s;
}
.pf-item .pf-link:hover { border-color: var(--ink); }

.pf-item .pf-year {
  position: absolute;
  top: 10px;
  right: 12px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: #aaa;
  letter-spacing: 0.1em;
}

/* Portfolio card images — 3:2 ratio, full cell width */
.pf-img {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  margin: 10px 0 8px;
  border: var(--rule-thin);
}

.pf-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* ── CONTACT ─────────────────────────────────────────────── */

.contact-wrap {
  margin-top: 36px;
  border: var(--rule-heavy);
  position: relative;
  overflow: hidden;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 2px 1fr 2px 280px;
  gap: 0;
}

.contact-col               { padding: 28px 24px; }
.contact-col:first-child   { padding-left: 28px; }
.contact-col:last-child    { padding-right: 28px; }

.contact-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 14px;
}

.contact-detail {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: var(--rule-thin);
}

.contact-detail .cd-label {
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #888;
  min-width: 52px;
}

.contact-detail .cd-value {
  font-size: 1rem;
  font-weight: 600;
}

.contact-detail a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--yellow);
}

.cta-box {
  background: var(--ink);
  color: var(--cream);
  padding: 22px;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 14px;
}

.cta-box h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
}

.cta-box p {
  font-size: 0.875rem;
  line-height: 1.6;
  opacity: 0.8;
}

.cta-btn {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 10px 24px;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}
.cta-btn:hover { background: var(--yellow-dark); transform: translateY(-1px); }


/* ── FOOTER ──────────────────────────────────────────────── */

.footer-ticker {
  background: var(--ink);
  border-top: var(--rule-thick);
  overflow: hidden;
  white-space: nowrap;
  padding: 10px 0;
  margin-top: 0;
}

.footer-ticker-track {
  display: inline-block;
  animation: ticker 30s linear infinite;
}

.footer-ticker-track span {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  padding: 0 28px;
}

.footer-ticker-track span.yellow { color: var(--yellow); }
.footer-ticker-track .sep        { color: var(--yellow); margin: 0 6px; }

.footer-colophon {
  background: var(--cream-dark);
  border-top: var(--rule-thin);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 24px;
  font-family: 'IM Fell English', Georgia, serif;
  font-size: 0.75rem;
  font-style: italic;
  color: #888;
}


/* ── RESPONSIVE ──────────────────────────────────────────── */

@media (max-width: 900px) {
  .about-grid            { grid-template-columns: 1fr; gap: 16px; }
  .col-rule              { display: none; }
  .about-col             { padding: 0; }
  .ornament-col          { flex-direction: row; justify-content: flex-start; padding: 0; }

  .services-intro        { grid-template-columns: 1fr; }
  .services-lede         { border-right: none; border-bottom: var(--rule); padding-right: 0; padding-bottom: 16px; }
  .services-tagline      { padding-left: 0; padding-top: 12px; }

  .ad-grid               { grid-template-columns: repeat(2, 1fr); }
  .ad-cell.wide          { grid-column: span 2; }

  .portfolio-grid        { grid-template-columns: repeat(3, 1fr); }
  .pf-item.span4,
  .pf-item.span6         { grid-column: span 3; }
  .pf-item.span3         { grid-column: span 3; }

  .contact-inner         { grid-template-columns: 1fr; }
  .contact-col           { padding: 20px 16px; }
}

@media (max-width: 600px) {
  .ad-grid               { grid-template-columns: 1fr; }
  .ad-cell.wide          { grid-column: span 1; }

  .portfolio-grid        { grid-template-columns: repeat(2, 1fr); }
  .pf-item.span4,
  .pf-item.span6,
  .pf-item.span3         { grid-column: span 2; }

  .nav-bar               { flex-wrap: wrap; }
  .nav-bar a             { font-size: 0.75rem; padding: 7px 12px; }
}
