/*
Theme Name: My Custom Theme
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: A custom-built starter theme with WooCommerce support.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: my-custom-theme
*/

/* ==========================================================================
   Design tokens
   ========================================================================== */

:root {
    --color-bg: #FAFAF8;
    --color-ink: #1A1A18;
    --color-primary: #2B4C3F;   /* deep forest — primary accent */
    --color-tag: #C9A227;       /* muted brass — price-tag accent */
    --color-line: #DEDAD2;
    --color-muted: #6B6B63;

    --font-display: "Space Grotesk", -apple-system, sans-serif;
    --font-body: "IBM Plex Sans", -apple-system, sans-serif;
    --font-mono: "IBM Plex Mono", monospace;
}

/* ==========================================================================
   Base
   ========================================================================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--color-ink);
    background: var(--color-bg);
}

a {
    color: #2563eb;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-branding a {
    font-size: 1.4rem;
    font-weight: 700;
    color: #111;
}

.site-branding {
    max-width: 220px;
}

.custom-logo-link img,
.site-branding img {
    max-height: 60px;
    width: auto;
    height: auto;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: #333;
    font-weight: 500;
}

/* ==========================================================================
   Content
   ========================================================================== */

.site-content {
    padding: 40px 0;
    min-height: 60vh;
}

.entry-title {
    font-size: 2rem;
    margin-bottom: 0.5em;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    border-top: 1px solid #eee;
    padding: 30px 0;
    text-align: center;
    color: #777;
    font-size: 0.9rem;
}

/* ==========================================================================
   Homepage — hero
   ========================================================================== */

.home-hero {
    border-bottom: 1px solid var(--color-line);
    padding: 64px 0 56px;
}

.home-hero .hero-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: 28px;
}

.home-hero .hero-meta span.dot {
    color: var(--color-tag);
}

.home-hero h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.08;
    letter-spacing: -0.01em;
    margin: 0 0 20px;
    max-width: 14ch;
}

.home-hero p.hero-sub {
    font-size: 1.05rem;
    color: var(--color-muted);
    max-width: 46ch;
    margin: 0 0 28px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-body);
    font-weight: 600;
    padding: 13px 24px;
    border-radius: 2px;
    transition: transform 0.15s ease, background 0.15s ease;
}

.hero-cta:hover {
    background: #1e392f;
    text-decoration: none;
    transform: translateX(2px);
}

/* ==========================================================================
   Homepage — department index (category nav)
   ========================================================================== */

.dept-index {
    padding: 40px 0;
    border-bottom: 1px solid var(--color-line);
}

.dept-index .dept-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: 18px;
}

.dept-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.dept-list a {
    display: inline-block;
    padding: 9px 18px;
    border: 1px solid var(--color-line);
    border-radius: 999px;
    color: var(--color-ink);
    font-size: 0.92rem;
    font-weight: 500;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.dept-list a:hover {
    border-color: var(--color-primary);
    background: rgba(43, 76, 63, 0.06);
    text-decoration: none;
}

/* ==========================================================================
   Homepage — featured section header
   ========================================================================== */

.home-section {
    padding: 48px 0;
}

.home-section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 28px;
    border-bottom: 2px solid var(--color-ink);
    padding-bottom: 14px;
}

.home-section-header h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.home-section-header a.view-all {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-muted);
}

.home-section-header a.view-all:hover {
    color: var(--color-primary);
}

/* ==========================================================================
   Homepage — ticket-stub product cards (signature element)
   ========================================================================== */

.ticket-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .ticket-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
    .ticket-grid { grid-template-columns: 1fr; }
}

.ticket-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: 3px;
    overflow: hidden;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.ticket-card:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.ticket-card .ticket-media {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-bottom: 1px dashed var(--color-line);
    position: relative;
}

.ticket-card .ticket-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* the punched hole notch, evoking a torn price tag */
.ticket-card .ticket-media::after {
    content: "";
    position: absolute;
    left: -8px;
    bottom: -8px;
    width: 16px;
    height: 16px;
    background: var(--color-bg);
    border: 1px solid var(--color-line);
    border-radius: 50%;
}

.ticket-card .ticket-body {
    padding: 16px 16px 18px;
}

.ticket-card .ticket-name {
    font-size: 0.98rem;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--color-ink);
}

.ticket-card .ticket-name a {
    color: inherit;
}

.ticket-card .ticket-name a:hover {
    color: var(--color-primary);
    text-decoration: none;
}

.ticket-card .ticket-price {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--color-tag);
    font-weight: 600;
}

.ticket-card .ticket-price del {
    color: var(--color-muted);
    font-weight: 400;
    margin-right: 6px;
    opacity: 0.7;
}

.ticket-card .ticket-tag-no {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--color-ink);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 3px 7px;
    border-radius: 2px;
    letter-spacing: 0.03em;
}

/* ==========================================================================
   WooCommerce overrides (starter — expand as needed)
   ========================================================================== */

.woocommerce ul.products li.product {
    text-align: left;
}

.woocommerce .price {
    font-weight: 700;
    color: #111;
}

.woocommerce button.button,
.woocommerce a.button,
.woocommerce #respond input#submit {
    background: #111;
    color: #fff;
    border-radius: 4px;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
}

.woocommerce button.button:hover,
.woocommerce a.button:hover {
    background: #333;
}
