/*
Theme Name: Ohirune Studio
Description: Quiet editorial theme for Ohirune Studio. Gutenberg-first, Japanese and English editions.
Version: 0.1.3
Author: Ohirune Studio
Text Domain: ohirune-studio
Requires PHP: 8.0
License: GPL-2.0-or-later
*/
:root{--paper:#f5f3ee;--ink:#20201d;--muted:#65645d;--line:#d5d2c9;--measure:1200px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:Inter,"Noto Sans JP","Hiragino Kaku Gothic ProN",Meiryo,sans-serif;line-height:1.85;-webkit-font-smoothing:antialiased}a{color:inherit;text-underline-offset:.25em}a:hover{text-decoration-thickness:2px}a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--ink);outline-offset:5px}button,input,textarea,select{font:inherit}img{max-width:100%;height:auto}h1,h2,h3,p{overflow-wrap:break-word}h1,h2,h3{line-height:1.3;letter-spacing:-.035em;font-weight:500}h1{font-size:clamp(36px,5.2vw,76px)}h2{font-size:clamp(28px,3.6vw,50px)}h3{font-size:23px}.shell{width:min(var(--measure),calc(100% - 96px));margin-inline:auto}.site-header{display:flex;align-items:center;justify-content:space-between;gap:30px;min-height:106px;border-bottom:1px solid var(--line)}.wordmark{font-size:16px;font-weight:700;letter-spacing:.13em;text-decoration:none;white-space:nowrap}.site-nav{display:flex;gap:30px;align-items:center;font-size:13px}.site-nav a{text-decoration:none}.languages{display:flex;gap:12px;border-left:1px solid var(--line);padding-left:24px}.languages [aria-current]{text-decoration:underline}.skip-link{position:absolute;top:-100px;left:20px;padding:12px;background:var(--ink);color:var(--paper);z-index:100}.skip-link:focus{top:20px}.entry{padding-block:70px 100px}.entry-title{max-width:1000px;margin:0 0 60px}.entry-content>*,.editor-styles-wrapper{max-width:760px}.entry-content>.alignwide,.entry-content>.oh-hero,.entry-content>.oh-product,.entry-content>.oh-research,.entry-content>.oh-closing,.entry-content>.oh-about{max-width:none}.entry-content p{margin-block:0 24px}.entry-content h2{margin-block:70px 28px}.entry-content h3{margin-top:40px}.oh-hero{padding-block:95px 155px;min-height:610px;display:flex;flex-direction:column;justify-content:center}.oh-hero h1{font-size:clamp(45px,6.8vw,91px);line-height:1.5;letter-spacing:-.065em;margin:0;font-weight:500}.oh-hero .oh-en-head{line-height:1.1;max-width:980px;letter-spacing:-.05em}.oh-hero p{margin-top:40px;font-size:clamp(17px,2vw,24px);line-height:1.6}.oh-product{border-top:1px solid var(--line);padding-block:62px 75px;display:grid;grid-template-columns:180px 1fr;gap:24px}.oh-product h2{margin:0 0 25px}.oh-product p{max-width:600px}.oh-eyebrow{font-size:11px;letter-spacing:.13em;text-transform:uppercase;color:var(--muted)}.oh-product .oh-eyebrow{padding-top:14px}.oh-product .wp-block-group{max-width:760px}.oh-link{display:inline-block;margin-top:12px;text-decoration:none;border-bottom:1px solid var(--ink);padding-block:8px;font-size:14px}.oh-research{border-top:1px solid var(--line);padding:80px 0 90px 204px}.oh-research h2{margin-top:0}.oh-about{border-top:1px solid var(--line);padding:55px 0 55px 204px}.oh-closing{padding-block:120px 80px;border-top:1px solid var(--line)}.oh-closing p{font-size:clamp(20px,2.7vw,34px);letter-spacing:-.035em;margin-bottom:16px}.oh-closing p:last-child{margin-top:65px}.oh-callout{border-left:3px solid var(--ink);padding:20px 28px;background:#eae7df;font-size:clamp(20px,2vw,28px)}.site-footer{padding-block:45px 30px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}.footer-top{display:flex;justify-content:space-between;gap:40px;padding-bottom:45px}.footer-links{display:flex;flex-wrap:wrap;gap:12px 26px;max-width:660px}.footer-links a{text-decoration:none}.copyright{font-size:10px;letter-spacing:.08em}.preview-notice{background:#262620;color:#f5f3ee;text-align:center;font-size:12px;padding:8px 20px}.wp-block-buttons{margin-block:30px}.wp-block-button__link,.oh-button{display:inline-block;border-radius:0;background:var(--ink);color:var(--paper);padding:13px 28px;text-decoration:none;font-size:14px}.wp-block-table{overflow-x:auto}.wp-block-table table{border-collapse:collapse;width:100%;font-size:14px}.wp-block-table td,.wp-block-table th{border:0;border-bottom:1px solid var(--line);padding:15px;text-align:left}.oh-form label{display:block;margin-top:22px;font-size:14px}.oh-form input:not([type=checkbox]),.oh-form select,.oh-form textarea{width:100%;border:1px solid #a5a298;background:transparent;border-radius:0;padding:12px;color:var(--ink)}.oh-form textarea{min-height:150px}.oh-form fieldset{border:0;padding:0}.oh-form .oh-check{display:flex;align-items:start;gap:12px}.oh-form .oh-check input{margin-top:8px}.oh-form button{border:0;margin-top:25px}.oh-form button:disabled{opacity:.5}.oh-note{font-size:13px;color:var(--muted)}.oh-product-list{list-style:none;padding:0}.oh-product-list li{border-top:1px solid var(--line);padding:32px 0;font-size:28px}.oh-empty{min-height:65vh;display:flex;flex-direction:column;justify-content:center}.oh-empty p{color:var(--muted)}
@media(max-width:760px){.shell{width:calc(100% - 40px)}.site-header{min-height:100px;align-items:flex-start;flex-direction:column;gap:14px;justify-content:center;padding-block:20px}.site-nav{gap:20px;font-size:12px;width:100%;flex-wrap:wrap}.languages{margin-left:auto;padding-left:16px}.wordmark{font-size:14px}.entry{padding-block:25px 65px}.oh-hero{padding-block:75px 115px;min-height:450px}.oh-hero h1{font-size:clamp(38px,7.8vw,58px)}.oh-product{grid-template-columns:1fr;gap:12px;padding-block:35px 45px}.oh-product .oh-eyebrow{padding:0}.oh-research,.oh-about{padding:45px 0}.oh-closing{padding-block:70px 30px}.footer-top{flex-direction:column}.entry-title{margin-block:25px 35px}.entry-content h2{margin-top:45px}.oh-product h2,.oh-research h2{margin-top:0}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
.oh-essay{font-size:18px;max-width:760px;margin-inline:auto}.oh-essay p{margin-bottom:38px;line-height:2.15}.oh-essay .oh-about-pause{font-size:clamp(24px,3vw,34px);line-height:1.8;margin-block:80px}.oh-about-ending{border-top:1px solid var(--line);margin-top:100px;padding-top:65px}.oh-about-ending p{font-size:clamp(22px,3vw,34px);line-height:1.7;margin-bottom:35px}.oh-about-ending p:last-child{margin-top:70px}@media(max-width:760px){.oh-essay{font-size:16px}.oh-essay .oh-about-pause{margin-block:55px}.oh-about-ending{margin-top:65px;padding-top:45px}}
/* Document typography: a shared reading column with deliberate heading scale. */
.oh-document-page .entry{width:min(960px,calc(100% - 96px));padding-top:64px}
.oh-document-page .entry-title{max-width:none;font-size:clamp(30px,4.3vw,58px);line-height:1.35;letter-spacing:-.035em;margin:0 0 30px}
.oh-document-page .entry-content{max-width:none;font-size:17px;line-height:1.95}
.oh-document-page .entry-content>*{max-width:none}
.oh-document-page .entry-content h2{font-size:clamp(24px,2.5vw,34px);line-height:1.55;letter-spacing:-.02em;margin:48px 0 16px;line-break:strict;text-wrap:pretty}
.oh-document-page .entry-content>.oh-eyebrow:first-child{margin-bottom:18px}
.oh-document-page .entry-content>.oh-eyebrow:first-child+h2{margin-top:0;font-size:clamp(25px,2.7vw,37px)}
.oh-document-page .entry-content h3{font-size:23px;margin:34px 0 14px}
.oh-document-page .entry-content p{margin:0 0 22px;line-break:strict;text-wrap:pretty}
.oh-document-page .entry-content ul{margin:16px 0 24px;padding-left:1.35em}
.oh-document-page .entry-content li{padding-left:.2em;margin-block:5px}
.oh-document-page .entry-content .oh-note{font-size:13px;line-height:1.8}
.oh-document-page .oh-link{margin-top:0;padding-block:6px}
.oh-document-page .entry-content .oh-product{max-width:none}
.oh-about-page .entry{width:min(820px,calc(100% - 96px));padding-top:64px}
.oh-about-page .entry-title{font-size:clamp(30px,4vw,50px);line-height:1.45;max-width:none;margin:0 0 52px;letter-spacing:-.035em}
.oh-about-page .oh-essay{max-width:none;margin:0}
.oh-about-page .oh-essay p{line-height:2;margin-bottom:30px}
.oh-about-page .oh-essay .oh-about-pause{font-size:clamp(23px,2.4vw,30px);line-height:1.8;margin-block:56px}
.oh-about-page .oh-about-ending{margin-top:72px;padding-top:50px}
.oh-about-page .oh-about-ending p{font-size:clamp(22px,2.6vw,32px);line-height:1.8;margin-bottom:24px}
.oh-about-page .oh-about-ending p:last-child{margin-top:54px}
html[lang=ja] .entry-content{line-break:strict}
@media(min-width:1000px){.oh-document-page .entry-content>.oh-eyebrow:first-child+h2{white-space:normal}}
@media(max-width:760px){.oh-document-page .entry,.oh-about-page .entry{width:calc(100% - 40px);padding-top:36px}.oh-document-page .entry-title{font-size:32px;margin-bottom:24px}.oh-document-page .entry-content{font-size:16px}.oh-document-page .entry-content h2{font-size:24px;margin-top:36px;line-height:1.6}.oh-document-page .entry-content>.oh-eyebrow:first-child+h2{font-size:25px}.oh-about-page .entry-title{font-size:30px;margin-bottom:36px}.oh-about-page .oh-essay .oh-about-pause{margin-block:44px}}
/* One alignment system for both editions and every page. */
:root{--measure:1120px}
.shell,.oh-document-page .entry,.oh-about-page .entry{width:min(var(--measure),calc(100% - 96px));margin-inline:auto}
.entry-title,.entry-content,.entry-content>*,.oh-about-page .oh-essay{margin-inline:0;text-align:left}
.oh-document-page .entry-content>*,.oh-about-page .oh-essay{max-width:880px}
.oh-document-page .entry-title,.oh-about-page .entry-title{max-width:100%;margin-inline:0}
.oh-product{display:block;padding-block:46px 54px}
.oh-product .oh-eyebrow{padding-top:0;margin-bottom:20px}
.oh-product .wp-block-group{max-width:880px;margin-inline:0}
.oh-product h2{font-size:clamp(28px,3vw,42px);margin:0 0 20px}
.oh-product p{max-width:760px}
.oh-research{padding:60px 0 70px}
.oh-about{padding:44px 0}
.oh-research h2{font-size:clamp(27px,3vw,40px);margin:0 0 25px}
.oh-closing{padding-block:80px 55px}
.oh-about-page .oh-essay{margin-inline:0}
@media(max-width:760px){.shell,.oh-document-page .entry,.oh-about-page .entry{width:calc(100% - 40px)}.oh-product{padding-block:35px 42px}.oh-research{padding-block:44px 50px}.oh-closing{padding-block:58px 30px}}
/* A quiet, gently rounded voice for Japanese brand copy. */
html[lang^="ja"] .oh-hero h1,html[lang^="ja"] .oh-closing p,html[lang^="ja"] .oh-about-ending p{font-family:"Hiragino Maru Gothic ProN","Hiragino Maru Gothic Pro","Yu Gothic",Meiryo,sans-serif;font-weight:400;letter-spacing:.015em}
html[lang^="ja"] .oh-hero h1{font-size:clamp(36px,5.6vw,76px);line-height:1.7}
@media(max-width:760px){html[lang^="ja"] .oh-hero h1{font-size:clamp(29px,7vw,49px);letter-spacing:0;line-height:1.8}}
.oh-document-page .entry-content h2{text-wrap:balance}
.oh-document-page .entry-content>.oh-eyebrow:first-child+h2{font-size:clamp(25px,2.2vw,30px)}
/* The directory belongs to the whole product section, with its own clear action. */
.oh-home-page .entry-content > .oh-product + p{max-width:none;border-top:1px solid var(--line);padding:32px 0 40px;margin:0}
.oh-home-page .entry-content > .oh-product + p > .oh-link{display:inline-flex;align-items:center;justify-content:center;min-height:56px;min-width:260px;margin:0;padding:14px 28px;background:var(--ink);color:var(--paper);border:1px solid var(--ink);font-size:16px;text-decoration:none}
.oh-home-page .entry-content > .oh-product + p > .oh-link:hover{background:var(--paper);color:var(--ink)}
/* The second section starts practical guidance after the introductory concept. */
.oh-product-page .entry-content > h2:nth-of-type(2){margin-top:112px}
@media(max-width:760px){.oh-home-page .entry-content > .oh-product + p{padding:28px 0 36px}.oh-home-page .entry-content > .oh-product + p > .oh-link{width:100%;min-width:0}.oh-product-page .entry-content > h2:nth-of-type(2){margin-top:88px}}
