/*
Theme Name: Articul Sample
Theme URI: https://example.com
Author: Your Name
Description: Re-creation of ARTICULSAMPLE.01 portfolio site
Version: 1.0
Text Domain: articul-sample
*/

:root {
  --c-bg: #f0edec;
  --c-primary: #314c50;
  --c-accent: #cec699;
  --c-text: #333;
}

body {
  margin: 0;
  font-family: "Noto Serif JP", "Playfair Display", serif;
  color: var(--c-text);
  background: var(--c-bg);
}

.container {
  width: min(90%, 1200px);
  margin-inline: auto;
}

.site-header {
  background: #fff;
  padding: 1rem 0;
  border-bottom: 1px solid #ddd;
}
.site-title { font-family: "Playfair Display", serif; font-size: 1.5rem; margin: 0; }
.primary-menu { list-style:none; margin:0; padding:0; display:flex; gap:1.5rem; }
.primary-menu a { text-decoration:none; color: var(--c-primary); font-weight:700; }

/* Hero */
.hero { position:relative; height:70vh; overflow:hidden; }
.hero-bg { width:100%; height:100%; object-fit:cover; }
.hero-overlay { position:absolute; inset:0; display:flex; flex-direction:column; justify-content:center; align-items:flex-end; text-align:right; color:#fff; }
.hero-title { font-family:"Playfair Display"; font-size:3rem; margin:0; text-shadow:0 2px 4px rgba(0,0,0,.4); border-bottom:2px solid #fff; padding-bottom:.25rem; }
.hero-sub { margin:0 0 .5rem; font-size:1rem; letter-spacing:.1em; }
.hero-social { margin-top:1rem; display:flex; gap:.75rem; }
.hero-social a { color:#fff; font-size:1.1rem; }

/* About & Contact Page Hero Sections */
.about-hero, .contact-hero {
    height: 40vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-primary);
    text-align: center;
}
.about-hero h1, .contact-hero h1 {
    font-family: "Playfair Display", serif;
    font-size: 2.5rem;
    background-color: rgba(255,255,255,0.7);
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
}

/* About Page Bio Section */
.about-bio {
    padding: 3rem 0;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: center;
}
.about-bio__image img {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 4px;
}
.about-bio__text h2 {
    font-family: "Playfair Display", serif;
    font-size: 2rem;
    margin-top: 0;
}
.about-bio__text p {
    line-height: 1.7;
}
.about-social {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}
.about-social a {
    color: var(--c-primary);
    font-size: 1.2rem;
}
.btn.btn-primary {
    background-color: var(--c-primary);
    color: #fff;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
    transition: background-color 0.3s ease;
}
.btn.btn-primary:hover {
    background-color: #223639; /* Darken primary */
}

/* Contact Page Form Section */
.contact-form-section {
    padding: 3rem 0;
    background-color: #f9f9f9; /* Light pastel */
}
.contact-intro {
    text-align: center;
    margin-bottom: 2rem;
}
.wpcf7-form p {
    margin-bottom: 1rem;
}
.wpcf7-form input[type="text"], .wpcf7-form input[type="email"], .wpcf7-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.wpcf7-form input[type="submit"] {
    background-color: var(--c-primary);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.wpcf7-form input[type="submit"]:hover {
    background-color: #223639;
}

/* Single Post */
.single-post .post-title {
    font-family: "Playfair Display", serif;
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}
.single-post .post-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}
.single-post .post-content {
    line-height: 1.7;
}
.single-post .post-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

/* Works slider */
.works-slider-section { text-align:center; padding:4rem 0; }
.section-title { font-size:2.25rem; font-family:"Playfair Display"; margin-bottom:1rem; }
.work-slide img { width:100%; height:320px; object-fit:cover; border-radius:4px; }
.work-title,.work-card__title { font-size:1rem; margin-top:0.5rem; }
.swiper-button-next,.swiper-button-prev { color: var(--c-primary); }

/* Works archive grid */
.works-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:2rem; }
.work-card img { width:100%; height:230px; object-fit:cover; border-radius:4px; }
.work-card__title { text-align:center; margin-top:0.5rem; }

/* Single work */
.work-hero img { width:100%; height:auto; }
.work-title { font-family:"Playfair Display"; font-size:2rem; margin-top:1rem; }
.work-meta { list-style:none; padding:0; display:flex; gap:1rem; font-size:0.9rem; color:#666; }
.work-nav { display:flex; justify-content:space-between; margin-top:2rem; }

/* Blog list */
.blog-archive { padding:4rem 0; }
.blog-row { display:grid; grid-template-columns:120px 1fr; padding:.75rem 0; border-bottom:1px solid #ddd; }
.blog-row__date { color:#666; font-size:.9rem; }
.blog-row__title { color:var(--c-primary); text-decoration:none; }
.blog-row__title:hover { text-decoration:underline; }

/* Footer */
.site-footer { background:#111; color:#fff; padding:1.5rem 0; text-align:center; font-size:0.9rem; }

.footer-upper {
    padding: 2rem 0;
    text-align: center;
}
.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}
.footer-social a {
    color: var(--c-primary);
    font-size: 1.3rem;
}
.footer-social a:hover {
    color: #fff;
}
.footer-lower {
    background-color: #111;
    color: #ccc;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
}
.footer-lower p {
    margin: 0 0 0.5rem;
}
.footer-nav a {
    color: #ccc;
    text-decoration: none;
    margin: 0 0.5rem;
}
.footer-nav a:hover {
    color: #fff;
}

/* Cookie Notice */
#cookie-notice {
    background-color: rgba(0,0,0,0.85);
    color: #fff;
    padding: 1rem 0;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: none; /* Hidden by default, JS can show it */
}
#cookie-notice .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#cookie-notice p {
    margin: 0;
}
#cookie-notice a {
    color: var(--c-accent);
    text-decoration: underline;
}
#cookie-notice button {
    background-color: var(--c-accent);
    color: var(--c-primary);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .hero-title { font-size: 2.5rem; }
    .about-bio { grid-template-columns: 1fr; text-align: center; }
    .about-bio__image img { margin: 0 auto 1rem; }
}

@media (max-width: 768px) {
    .site-header .container { flex-direction: column; align-items: center; }
    .primary-menu { margin-top: 1rem; }
    .hero { height: 60vh; }
    .hero-title { font-size: 2rem; }
    .hero-overlay { align-items: center; text-align: center; }
    .works-grid { grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); }
    .blog-row { grid-template-columns: 80px 1fr; gap: 0.5rem; }
    .footer-social { gap: 1rem; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.8rem; }
    .section-title { font-size: 1.8rem; }
    .works-grid { grid-template-columns: 1fr; }
    .primary-menu { flex-direction:column; align-items:center; gap: .5rem; }
    #cookie-notice .container { flex-direction: column; gap: 0.5rem; }
}
